MyImage class sealed
- Available extensions
- Annotations
- 
    - @freezed
 
Constructors
- MyImage.asset({required String assetPath, @Default.new(ImageParams()) ImageParams params})
- 
          
            factory
- MyImage.base64({required String base64Code, @Default.new(ImageParams()) ImageParams params})
- 
          
            factory
- MyImage.filePath({required String filePath, @Default.new(ImageParams()) ImageParams params})
- 
          
            factory
- 
          MyImage.fromJson(Map<String, dynamic> json)
- 
          
            factory
- MyImage.network({required String url, @Default.new(ImageParams()) ImageParams params})
- 
          
            factory
Properties
- 
  copyWith
  → $MyImageCopyWith<MyImage> 
- 
  Create a copy of MyImage
with the given fields replaced by the non-null parameter values.
  no setterinherited
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- params → ImageParams
- 
  
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  map<TResult extends Object?> ({required TResult network(MyNetworkImage value), required TResult base64(MyBase64Image value), required TResult filePath(MyFilePathImage value), required TResult asset(MyAssetImage value)}) → TResult 
- 
      Available on MyImage, provided by the MyImagePatterns extension Aswitch-like method, using callbacks.
- 
  mapOrNull<TResult extends Object?> ({TResult? network(MyNetworkImage value)?, TResult? base64(MyBase64Image value)?, TResult? filePath(MyFilePathImage value)?, TResult? asset(MyAssetImage value)?}) → TResult? 
- 
      Available on MyImage, provided by the MyImagePatterns extension A variant ofmapthat fallback to returningnull.
- 
  maybeMap<TResult extends Object?> ({TResult network(MyNetworkImage value)?, TResult base64(MyBase64Image value)?, TResult filePath(MyFilePathImage value)?, TResult asset(MyAssetImage value)?, required TResult orElse()}) → TResult 
- 
      Available on MyImage, provided by the MyImagePatterns extension A variant ofmapthat fallback to returningorElse.
- 
  maybeWhen<TResult extends Object?> ({TResult network(String url, ImageParams params)?, TResult base64(String base64Code, ImageParams params)?, TResult filePath(String filePath, ImageParams params)?, TResult asset(String assetPath, ImageParams params)?, required TResult orElse()}) → TResult 
- 
      Available on MyImage, provided by the MyImagePatterns extension A variant ofwhenthat fallback to anorElsecallback.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  Serializes this MyImage to a JSON map.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  when<TResult extends Object?> ({required TResult network(String url, ImageParams params), required TResult base64(String base64Code, ImageParams params), required TResult filePath(String filePath, ImageParams params), required TResult asset(String assetPath, ImageParams params)}) → TResult 
- 
      Available on MyImage, provided by the MyImagePatterns extension Aswitch-like method, using callbacks.
- 
  whenOrNull<TResult extends Object?> ({TResult? network(String url, ImageParams params)?, TResult? base64(String base64Code, ImageParams params)?, TResult? filePath(String filePath, ImageParams params)?, TResult? asset(String assetPath, ImageParams params)?}) → TResult? 
- 
      Available on MyImage, provided by the MyImagePatterns extension A variant ofwhenthat fallback to returningnull
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited