ScreenObjectEdgeInsets class
Represents edge insets used for layout spacing around a ScreenObject.
This class defines the amount of space to apply on each side (top, left, bottom, and right) of a screen object. It is commonly used for layout calculations, alignment adjustments, and serialization.
The values are expressed in logical pixels.
Constructors
- ScreenObjectEdgeInsets({required int top, required int left, required int bottom, required int right})
-
Creates a ScreenObjectEdgeInsets with the given edge values.
constfactory
-
ScreenObjectEdgeInsets.fromJson(Map<
String, dynamic> json) -
Creates a ScreenObjectEdgeInsets instance from a JSON map.
factory
Properties
- bottom → int
-
The inset on the bottom side.
no setterinherited
-
copyWith
→ $ScreenObjectEdgeInsetsCopyWith<
ScreenObjectEdgeInsets> -
Create a copy of ScreenObjectEdgeInsets
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- left → int
-
The inset on the left side.
no setterinherited
- right → int
-
The inset on the right side.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → int
-
The inset on the top side.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ScreenObjectEdgeInsets to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited