VisualDensity class Null safety

Implementers
Annotations
  • @freezed

Constructors

VisualDensity({@Default(0.0) double horizontal, @Default(0.0) double vertical})
const
factory
VisualDensity.adaptivePlatformDensity()
const
factory
VisualDensity.fromJson(Map<String, Object?> json)
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>(TResult $default(_VisualDensity value), {required TResult adaptivePlatformDensity(AdaptivePlatformDensity value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>(TResult? $default(_VisualDensity value)?, {TResult? adaptivePlatformDensity(AdaptivePlatformDensity value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>(TResult $default(_VisualDensity value)?, {TResult adaptivePlatformDensity(AdaptivePlatformDensity value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>(TResult $default(double horizontal, double vertical)?, {TResult adaptivePlatformDensity()?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(double horizontal, double vertical), {required TResult adaptivePlatformDensity()}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>(TResult? $default(double horizontal, double vertical)?, {TResult? adaptivePlatformDensity()?}) → TResult?
@optionalTypeArgs, inherited

Operators

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

Constants

comfortable → const VisualDensity
VisualDensity(horizontal: -1.0, vertical: -1.0)
compact → const VisualDensity
VisualDensity(horizontal: -2.0, vertical: -2.0)
standard → const VisualDensity