CheckLogic<S, V, F> class

1. DEFINE LOGIC

CheckLogic _checkLogic;

2. INITIALIZE LOGIC

_checkLogic = CheckLogic();

3. DISPOSE

_checkLogic.dispose();

4. LISTENER

Available states:

  • CheckedState
  • UncheckedState

Example:

_checkLogic.listener(
  (context, state) {
    if (state is CheckedState)
      print('checked');
    else
      print('unchecked');
   },
   child: Container(),
)

5. BUILDER

Available states:

  • CheckedState
  • UncheckedState

Example:

_checkLogic.builder(
  (context, state) {
    if (state is CheckedState)
      print('checked');
    if (state is UncheckedState)
      print('unchecked');
    return Container();
  }
)

6. EVENTS

  • checkEvent()
  • uncheckEvent()

Example:

_checkLogic.checkEvent();
_checkLogic.uncheckEvent();

Constructors

CheckLogic()

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

builder(Widget builder(BuildContext, CheckState), {bool buildWhen(CheckState, CheckState)?}) BlocBuilder<BlocBase, dynamic>
checkEvent() → void
dispose() → void
listener(void listener(BuildContext, CheckState), {bool listenWhen(CheckState, CheckState)?, required Widget child}) BlocListener<BlocBase, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uncheckEvent() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited