maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. String type,
    2. String data
    )?, {
  2. TResult arr(
    1. String type,
    2. List<String> data
    )?,
  3. TResult any(
    1. String type,
    2. dynamic data
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') String data)?
      $default, {
  TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') List<String> data)?
      arr,
  TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') dynamic data)?
      any,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;