MaterialSizes class

A base class describes different types of screens according to Material Design Guidance

Annotations

Properties

hashCode int
The hash code for this object.
no setteroverride
maxWidth num
final
minWidth num
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

maybeWhen<T extends Object?>({T xsmall()?, T small()?, T medium()?, T large()?, T xlarge()?, required T orElse()}) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
when<T>({required T xsmall(), required T small(), required T medium(), required T large(), required T xlarge()}) → T

Operators

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

Constants

large → const MaterialSizes
medium → const MaterialSizes
small → const MaterialSizes
xlarge → const MaterialSizes
xsmall → const MaterialSizes