DeviceSize class

Defines the size of a device

This is implemented since build_runner does not work with flutter dependencies. Therefore, Size from flutter material cannot be used.

Annotations
  • @freezed

Constructors

DeviceSize({required double width, required double height})
Creates a new instance of DeviceSize by specifying width and height.
const
factory

Properties

copyWith → $DeviceSizeCopyWith<DeviceSize>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the device
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Width of the device
no setterinherited

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 *(double operand) DeviceSize
Multiplication operator.
operator /(double operand) DeviceSize
Division operator.
operator ==(Object other) bool
The equality operator.
inherited