BackgroundScene class final
What a family scene painter is given (see backgroundScenePainters).
Constructors
- BackgroundScene({required BackgroundSpec spec, required Rect? textSafeArea, required double driftSeconds, required double clockSeconds, required bool reduceMotion, required double patternFade, required BackgroundCache cache, required void paintFallback(Canvas canvas, Size size), Rect? toolbarExclusion})
Properties
- cache → BackgroundCache
-
The shared shader and picture cache (BackgroundCache.scenePicture).
final
- clockSeconds → double
-
The ambient clock (0 under Reduce Motion), read even when
driftPeriodMsis 0: a same-family transition drops the drift period, and a scene that animates can hold its phase through it.final - driftSeconds → double
-
Drift time: 0 under Reduce Motion or when
driftPeriodMsis 0.final - hashCode → int
-
The hash code for this object.
no setterinherited
- paintFallback → void Function(Canvas canvas, Size size)
-
Paints spec as a plain gradient of its colours (malformed specs).
final
- patternFade → double
-
Extra opacity on the scene's overlay pattern, 0–1 (a transition
cross-fading one pattern out and the next in).
final
- reduceMotion → bool
-
Reduce Motion: nothing animates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spec → BackgroundSpec
-
The scene's spec (its family documents each field's meaning).
final
- textSafeArea → Rect?
-
Display text area to keep calm (null: none).
final
- toolbarExclusion → Rect?
-
Chrome in the toolbar row of textSafeArea that a scene drawing art
there must leave clear (null: none), in the same coordinates: the
mode button (m7-design §6). Bauhaus starts its masthead after it.
final
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