IslandEnvironment class
How islands are built in one node tree.
- Annotations
Constructors
- IslandEnvironment({Widget wrap(Widget child)?, bool interactive = false, bool restartsWhenRebuilt = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- interactive → bool
-
Whether islands take pointer input and focus (a running app) or are
only drawn (a design canvas, the default).
final
- restartsWhenRebuilt → bool
-
Whether an island's widget starts over (fresh state) each time its node
re-applies, rather than updating in place. A board whose islands don't
tick (
TickerModeoff) needs it: a radio's dot or a slider's thumb moves to a new value by animating, which never runs there, so they would keep showing the first value.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wrap → Widget Function(Widget child)?
-
Wraps every island's widget (extra inherited widgets). The app's own
inherited widgets reach islands without it.
final
Methods
-
apply(
Widget child) → Widget -
childunder the environment: with the ambient widgets an app normally provides added only where the app has none; not focusable or tappable unless interactive. -
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.
override