StoryAreaPosition class abstract
Describes the position of a clickable area within a story.
- Annotations
-
- @freezed
Constructors
- StoryAreaPosition.new({@JsonKey(name: 'x_percentage') required double xPercentage, @JsonKey(name: 'y_percentage') required double yPercentage, @JsonKey(name: 'width_percentage') required double widthPercentage, @JsonKey(name: 'height_percentage') required double heightPercentage, @JsonKey(name: 'rotation_angle') required double rotationAngle, @JsonKey(name: 'corner_radius_percentage') required double cornerRadiusPercentage})
-
Creates a new StoryAreaPosition object.
constfactory
-
StoryAreaPosition.fromJson(Map<
String, dynamic> json) -
Creates a new StoryAreaPosition object from a JSON Map.
factory
Properties
-
copyWith
→ $StoryAreaPositionCopyWith<
StoryAreaPosition> -
Create a copy of StoryAreaPosition
with the given fields replaced by the non-null parameter values.
no setterinherited
- cornerRadiusPercentage → double
-
The radius of the rectangle corner rounding, as a percentage of the media width
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- heightPercentage → double
-
The height of the area's rectangle, as a percentage of the media height
no setterinherited
- rotationAngle → double
-
The clockwise rotation angle of the rectangle, in degrees; 0-360
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widthPercentage → double
-
The width of the area's rectangle, as a percentage of the media width
no setterinherited
- xPercentage → double
-
The abscissa of the area's center, as a percentage of the media width
no setterinherited
- yPercentage → double
-
The ordinate of the area's center, as a percentage of the media height
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this StoryAreaPosition to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited