StatefulSheetDelegate<T> class
sealed
A sealed class that represents a delegate for the MultiStateSheet.
- Implementers
Constructors
- StatefulSheetDelegate.value(T value)
-
Creates a ToggleSheetDelegate that holds a fixed
value.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getStaticValue(
) → T? -
We need this method to get the value of the delegate if it is a static value.
We want to avoid calling the function every time we need the value and we can use this method in
init()to get the value of the delegate and store it in a variable. -
getValue<
StateType> (MultiStateSheetController< StateType> controller) → T? -
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
Static Methods
-
func<
T, S> (StatefulFunctionDelegate< T, S> function) → StatefulSheetDelegate<T> -
Creates a StatefulSheetDelegate using a custom function that takes a MultiStateSheetController
and returns an optional value of type
T. This allows for dynamic control of the sheet's behavior based on the controller's state.