whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? network(
    1. String imageUrl,
    2. bool isCircle,
    3. double width,
    4. double? height,
    5. BoxFit? boxFit,
    )?,
  2. TResult? asset(
    1. String assetName
    )?,
  3. TResult? localImage(
    1. String imagePath,
    2. double width,
    3. double height
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String imageUrl, bool isCircle, double width,
          double? height, BoxFit? boxFit)?
      network,
  TResult? Function(String assetName)? asset,
  TResult? Function(String imagePath, double width, double height)?
      localImage,
}) =>
    throw _privateConstructorUsedError;