MaterialStateProperty class Null safety

Implementers
Annotations
  • @freezed

Constructors

MaterialStateProperty.all(Color? color)
const
factory
MaterialStateProperty.fromJson(Map<String, Object?> json)
factory

Properties

color Color?
read-only, inherited
copyWith → $MaterialStatePropertyCopyWith<MaterialStateProperty>
@JsonKey(ignore: true), read-only, inherited
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?>({required TResult all(MaterialStatePropertyAll value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? all(MaterialStatePropertyAll value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult all(MaterialStatePropertyAll value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult all(Color? color)?, 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?>({required TResult all(Color? color)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? all(Color? color)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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