maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult network(
    1. String url,
    2. ImageParams params
    )?,
  2. TResult base64(
    1. String base64Code,
    2. ImageParams params
    )?,
  3. TResult filePath(
    1. String filePath,
    2. ImageParams params
    )?,
  4. TResult asset(
    1. String assetPath,
    2. ImageParams params
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String url, ImageParams params)? network,
  TResult Function(String base64Code, ImageParams params)? base64,
  TResult Function(String filePath, ImageParams params)? filePath,
  TResult Function(String assetPath, ImageParams params)? asset,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;