StoryModel class final
Constructors
- StoryModel({String id = '', bool isVideoIncluded = false, double videoDuration = 0})
- Constructor
-
StoryModel.fromJson(Map<
String, dynamic> json) -
Create story model from json
factory
Properties
- colorFilter ↔ String
-
Get color filter name
getter/setter pair
-
elements
↔ List<
StoryElement> -
Get story elements
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the story
final
- isVideoIncluded ↔ bool
-
Get video included
getter/setter pair
-
paletteColors
↔ List<
Color> -
Get palette color
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoDuration ↔ double
-
Get video duration
getter/setter pair
Methods
-
copyWith(
{String? id, List< StoryElement> ? elements, String? colorFiler, List<Color> ? paletteColors}) → StoryModel -
dispose(
) → void - Dispose
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited