Dimensions class

dart:ui Size replacement for non flutter project

Constructors

Dimensions(int width, int height)
const
Dimensions.fromHeight(int height)
const
Dimensions.fromWidth(int width)
const
Dimensions.square(int side)
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
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.
inherited

Operators

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

Constants

zero → const Dimensions