BuildContextExtensions extension
- on
Properties
- arg → dynamic
-
Get the data passed to the page.
no setter
- designType → DesignType
-
Get the Design type.
no setter
- flavor → String
-
Get the Flavor.
no setter
- mediaQuery → MediaQueryData
-
Get the media qury related to context
no setter
-
Get the Navigator related to context.
no setter
-
Get the Root navigator related to context.
no setter
- route → RouteSettings
-
Get the route settins.
no setter
- theme → ThemeData
-
Outputs the theme related to the context.
no setter
- webStyle → bool
-
If you want to use the style for web when you are on the web, use
true
.no setter - widgetTheme → WidgetTheme
-
Outputs the widget theme related to the context.
no setter
Methods
-
get<
T> (String key, T orElse) → T -
Gets the value from the
key
of the map stored in arg. -
getAsDateTime(
String key, [DateTime? orElse]) → DateTime -
Get the set corresponding to
key
in the DateTime. -
getAsList<
T> (String key, [List< T> ? orElse]) → List<T> -
Get the list corresponding to
key
in the map. -
getAsMap<
T> (String key, [Map< String, T> ? orElse]) → Map<String, T> -
Get the map corresponding to
key
in the map. -
getAsSets<
T> (String key, [Set< T> ? orElse]) → Set<T> -
Get the set corresponding to
key
in the map. -
open<
T extends Object?> (String path, [RouteQuery? query]) → Future< T?> - Open a new URL or screen.
-
rebuild(
) → void - Explicitly rebuild the widget.
-
rebuildAll(
) → void - Rebuild all active pages.
-
rebuildWhere(
bool test(PageState page)) → void -
Rebuild only the pages that are
true
intest
. -
unfocus(
) → void - Releases focus such as text field.
Operators
-
operator [](
Object? key) → dynamic -
Get
value
tokey
of the map stored in arg. -
operator []=(
String key, dynamic value) → void -
Save
value
tokey
of the map stored in arg.