Dimensions class

dart:ui Size replacement for non flutter project

Constructors

Dimensions(int width, int height, {MeasureUnits units = MeasureUnits.Pixel})
const
Dimensions.fromHeight(int height, [MeasureUnits units = MeasureUnits.Pixel])
const
Dimensions.fromWidth(int width, [MeasureUnits units = MeasureUnits.Pixel])
const
Dimensions.square(int side, [MeasureUnits units = MeasureUnits.Pixel])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
units MeasureUnits
final
width int
final

Methods

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

Operators

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

Constants

zero → const Dimensions