A reference to a SetupWidget and its associated BuildContext.
The WidgetRef provides access to a SetupWidget of type T and its
BuildContext. The widget reference is read-only.
- Implemented types
-
- Ref<
T?>
- Ref<
Properties
- context → BuildContext?
-
The BuildContext associated with the referenced widget, if available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T?
-
Gets the current value of the reference.
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited