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

hashCode int
The hash code for this object.
no setterinherited
height double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
final

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