otherwise method

void otherwise(
  1. void buildOtherwise(
    1. TransitionHandlerBuilderWithData<D>
    ), {
  2. String? label,
})

Implementation

void otherwise(
  void Function(TransitionHandlerBuilderWithData<D>) buildOtherwise, {
  String? label,
}) {
  var otherwiseBuilder = TransitionHandlerBuilderWithData<D>._(_forState);
  buildOtherwise(otherwiseBuilder);
  _conditions.add(_TransitionConditionWithContext(
    (_, __) => true,
    otherwiseBuilder._handler!,
    label,
  ));
}