type property

Type type

The type of the object returned by the load method, T by default.

This type is used to retrieve the object "loaded" by this LocalizationsDelegate from the Localizations inherited widget. For example the object loaded by LocalizationsDelegate<Foo> would be retrieved with:

Foo foo = Localizations.of<Foo>(context, Foo)!;

It's rarely necessary to override this getter.


Type get type => T;