maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult network(
    1. MyNetworkImage value
    )?,
  2. TResult base64(
    1. MyBase64Image value
    )?,
  3. TResult filePath(
    1. MyFilePathImage value
    )?,
  4. TResult asset(
    1. MyAssetImage value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(MyNetworkImage value)? network,
  TResult Function(MyBase64Image value)? base64,
  TResult Function(MyFilePathImage value)? filePath,
  TResult Function(MyAssetImage value)? asset,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;