when<TResult extends Object?> method

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

Implementation

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