boolean abstract method

  1. @Deprecated(_useDataBindingDeprecationMessageSMInput)
BooleanInput? boolean(
  1. String name, {
  2. String? path,
})

Retrieve a boolean input from the state machine with the given name. Get/set the BooleanInput.value of the input.

final boolean = stateMachine.boolean('booleanInput');
if (boolean != null) {
  print(boolean.value);
  boolean.value = true;
}

Optionally provide a path to access a nested input.

Docs: https://rive.app/docs/runtimes/state-machines

Implementation

@Deprecated(_useDataBindingDeprecationMessageSMInput)
BooleanInput? boolean(String name, {String? path});