PopupImageType class sealed

Annotations
  • @freezed

Constructors

PopupImageType.asset({required String assetName})
const
factory
PopupImageType.localImage({required String imagePath, required double width, required double height})
const
factory
PopupImageType.network({required String imageUrl, @Default.new(false) bool isCircle, @Default.new(double.infinity) double width, @Default.new(null) double? height, BoxFit? boxFit})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult network(NetworkPopupImage value), required TResult asset(AssetPopupImage value), required TResult localImage(LocalImagePopupImage value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? network(NetworkPopupImage value)?, TResult? asset(AssetPopupImage value)?, TResult? localImage(LocalImagePopupImage value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult network(NetworkPopupImage value)?, TResult asset(AssetPopupImage value)?, TResult localImage(LocalImagePopupImage value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult network(String imageUrl, bool isCircle, double width, double? height, BoxFit? boxFit)?, TResult asset(String assetName)?, TResult localImage(String imagePath, double width, double height)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult network(String imageUrl, bool isCircle, double width, double? height, BoxFit? boxFit), required TResult asset(String assetName), required TResult localImage(String imagePath, double width, double height)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? network(String imageUrl, bool isCircle, double width, double? height, BoxFit? boxFit)?, TResult? asset(String assetName)?, TResult? localImage(String imagePath, double width, double height)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited