ToggleSheetDelegate<T> class sealed

A sealed class that represents a delegate for the sheet.

Implementers

Constructors

ToggleSheetDelegate.func(T? function(ToggleSheetController controller))
Creates a ToggleSheetDelegate using a custom function that takes a ToggleSheetController and returns an optional value of type T. This allows for dynamic control of the sheet's behavior based on the controller's state.
factory
ToggleSheetDelegate.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<K>(ToggleSheetController 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