PangleSize class
image size
Constructors
- PangleSize({required double width, required double height})
- 自渲染时必填
- PangleSize.aspectRatio(double aspectRatio)
-
aspectRatio
item宽高比例 - PangleSize.aspectRatio16_9()
- PangleSize.aspectRatio9_16()
- PangleSize.heightPercent(double heightPercent, {required double aspectRatio})
- PangleSize.percent(double widthPercent, double heightPercent)
- PangleSize.widthPercent(double widthPercent, {required double aspectRatio})
Properties
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