StoryElement class

A class that represents a story element.

Constructors

StoryElement({String? id, int layerIndex = 0, required ItemType type, String value = '', Color containerColor = Colors.black, TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 16, letterSpacing: 1.0, fontWeight: FontWeight.normal, fontStyle: FontStyle.normal), Offset position = const Offset(0.4, 0.4), double scale = 1.0, double rotation = 0.0, TextAlign textAlign = TextAlign.center, Widget child = const SizedBox(), String customWidgetId = '', String customWidgetPayload = '', String customWidgetUniqueID = '', bool isVideoMuted = false, XFile? elementFile})
Creates a new story element.
StoryElement.fromJson(Map<String, dynamic> json)
factory

Properties

audioController ↔ AudioPlayer?
Audio controller.
getter/setter pair
child Widget
Element child.
getter/setter pair
containerColor Color
Element container color.
getter/setter pair
customWidgetId String
Custom widget id.
getter/setter pair
customWidgetPayload String
Custom widget payload.
getter/setter pair
customWidgetUniqueID String
Custom widget UniqueID.
getter/setter pair
elementDuration int
Element duration.
getter/setter pair
elementFile XFile?
Element file.
getter/setter pair
focusNode FocusNode
Element focus node.
final
hashCode int
The hash code for this object.
no setterinherited
hoverDelete ValueNotifier<bool>
Hover delete indicator.
getter/setter pair
id String
The unique identifier of the element.
final
isVideoMuted bool
Video muted .
getter/setter pair
itemSize ValueNotifier<Size>
Item size.
getter/setter pair
key GlobalKey<State<StatefulWidget>>
Element key.
final
layerIndex int
Layer index.
getter/setter pair
position Offset
Element position.
getter/setter pair
rotation double
Element rotation.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Element size.
getter/setter pair
textAlign TextAlign
Element text align.
getter/setter pair
textStyle TextStyle
Element text style.
getter/setter pair
type ItemType
Element type.
getter/setter pair
value String
Element value.
getter/setter pair
videoController VideoEditorController?
Video controller.
getter/setter pair
videoControllerView ↔ CachedVideoPlayerPlusController?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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