FontWeight class Null safety

Implementers
Annotations
  • @freezed

Constructors

FontWeight.fromJson(Map<String, Object?> json)
factory
FontWeight.w100()
const
factory
FontWeight.w200()
const
factory
FontWeight.w300()
const
factory
FontWeight.w400()
const
factory
FontWeight.w500()
const
factory
FontWeight.w600()
const
factory
FontWeight.w700()
const
factory
FontWeight.w800()
const
factory
FontWeight.w900()
const
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?>({required TResult w100(FontWeightW100 value), required TResult w200(FontWeightW200 value), required TResult w300(FontWeightW300 value), required TResult w400(FontWeightW400 value), required TResult w500(FontWeightW500 value), required TResult w600(FontWeightW600 value), required TResult w700(FontWeightW700 value), required TResult w800(FontWeightW800 value), required TResult w900(FontWeightW900 value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? w100(FontWeightW100 value)?, TResult? w200(FontWeightW200 value)?, TResult? w300(FontWeightW300 value)?, TResult? w400(FontWeightW400 value)?, TResult? w500(FontWeightW500 value)?, TResult? w600(FontWeightW600 value)?, TResult? w700(FontWeightW700 value)?, TResult? w800(FontWeightW800 value)?, TResult? w900(FontWeightW900 value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult w100(FontWeightW100 value)?, TResult w200(FontWeightW200 value)?, TResult w300(FontWeightW300 value)?, TResult w400(FontWeightW400 value)?, TResult w500(FontWeightW500 value)?, TResult w600(FontWeightW600 value)?, TResult w700(FontWeightW700 value)?, TResult w800(FontWeightW800 value)?, TResult w900(FontWeightW900 value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult w100()?, TResult w200()?, TResult w300()?, TResult w400()?, TResult w500()?, TResult w600()?, TResult w700()?, TResult w800()?, TResult w900()?, 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 w100(), required TResult w200(), required TResult w300(), required TResult w400(), required TResult w500(), required TResult w600(), required TResult w700(), required TResult w800(), required TResult w900()}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? w100()?, TResult? w200()?, TResult? w300()?, TResult? w400()?, TResult? w500()?, TResult? w600()?, TResult? w700()?, TResult? w800()?, TResult? w900()?}) → TResult?
@optionalTypeArgs, inherited

Operators

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

Constants

bold → const FontWeight
FontWeight.w700()
normal → const FontWeight
FontWeight.w400()
values → const List<FontWeight>
<FontWeight>[FontWeight.w100(), FontWeight.w200(), FontWeight.w300(), FontWeight.w400(), FontWeight.w500(), FontWeight.w600(), FontWeight.w700(), FontWeight.w800(), FontWeight.w900()]