TKMController class abstract
Class to create a controller to handle some encapsulated custom animation widget With this class, the custom widget has a way to handle some behavior for animationController without exposing the animationController to public
The basic use is extends
this class to your custom controller,
add the mixin you need to add new functionalities to the custom controller
With this the TKMController
try to reproduce https://en.wikipedia.org/wiki/Interface_segregation_principle
After that call the mixin Function with your own functions
class CustomController extends TKMController with ForwardFunction {
void open() => forwardFunction();
}
The State class of custom widget should implements the Mixin
TKMControllerMixin
After that in the initState
method from StatefulWidget
call the addState
to attached the state to the controller
- Inheritance
-
- Object
- BaseControllerFunction<
TKMControllerMixin> - TKMController
Constructors
Properties
- addState ← TKMControllerMixin
-
Attached the state to this controller
no getterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAttached → bool
-
Determine if the state with AnimationControllerMixin is attached to an instance
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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