Properties class sealed
- Available extensions
- Annotations
-
- @Freezed.new(unionKey: 'category', fallbackUnion: 'unknown')
Constructors
-
Properties.audio({required List<
File> files}) -
constfactory
-
Properties.fromJson(Map<
String, dynamic> json) -
factory
-
Properties.html({required List<
File> files}) -
constfactory
-
Properties.image({required List<
File> files}) -
constfactory
- Properties.unknown()
-
constfactory
-
Properties.video({required List<
File> files}) -
constfactory
-
Properties.vr({required List<
File> files}) -
constfactory
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 unknown(Unknown value), required TResult video(Video value), required TResult image(Image value), required TResult vr(Model3D value), required TResult audio(Audio value), required TResult html(Html value)}) → TResult -
Available on Properties, provided by the PropertiesPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? unknown(Unknown value)?, TResult? video(Video value)?, TResult? image(Image value)?, TResult? vr(Model3D value)?, TResult? audio(Audio value)?, TResult? html(Html value)?}) → TResult? -
Available on Properties, provided by the PropertiesPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult unknown(Unknown value)?, TResult video(Video value)?, TResult image(Image value)?, TResult vr(Model3D value)?, TResult audio(Audio value)?, TResult html(Html value)?, required TResult orElse()}) → TResult -
Available on Properties, provided by the PropertiesPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult unknown()?, TResult video(List< File> files)?, TResult image(List<File> files)?, TResult vr(List<File> files)?, TResult audio(List<File> files)?, TResult html(List<File> files)?, required TResult orElse()}) → TResult -
Available on Properties, provided by the PropertiesPatterns 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 Properties to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult unknown(), required TResult video(List< File> files), required TResult image(List<File> files), required TResult vr(List<File> files), required TResult audio(List<File> files), required TResult html(List<File> files)}) → TResult -
Available on Properties, provided by the PropertiesPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? unknown()?, TResult? video(List< File> files)?, TResult? image(List<File> files)?, TResult? vr(List<File> files)?, TResult? audio(List<File> files)?, TResult? html(List<File> files)?}) → TResult? -
Available on Properties, provided by the PropertiesPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited