fontWeight property
Subject<FontWeight>
fontWeight
A Subject<FontWeight> representing the fontWeight
of the TextStyle. If the fontWeight
is not
explicitly set, it defaults to FontWeight.normal.
Implementation
Subject<FontWeight> get fontWeight {
return context.nest(
() => ['has fontWeight'],
(it) => Extracted.value(it.fontWeight ?? FontWeight.normal),
);
}