otherwise method

void otherwise(
  1. void buildOtherwise(
    1. MachineDoneHandlerBuilder<C> builder
    ), {
  2. String? label,
})
inherited

Implementation

void otherwise(
  void Function(B builder) buildOtherwise, {
  String? label,
}) {
  var builder = _makeBuilder();
  buildOtherwise(builder);
  var descriptor = builder.descriptor;

  if (descriptor != null) {
    _conditions.add(MessageConditionDescriptor<M, D, C>(
      MessageConditionInfo(label, descriptor.info),
      (ctx) => true,
      descriptor,
    ));
  }
}