otherwise method

void otherwise(
  1. void buildOtherwise(
    1. TransitionHandlerBuilder
    ), {
  2. String? label,
})

Implementation

void otherwise(
  void Function(TransitionHandlerBuilder) buildOtherwise, {
  String? label,
}) {
  var otherwiseBuilder = TransitionHandlerBuilder._(_forState);
  buildOtherwise(otherwiseBuilder);
  _conditions.add(_TransitionCondition((_) => true, otherwiseBuilder._handler!, label));
}