whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;