call method
Returns itself.
Allows FHeaderStyle to replace functions that accept and return a FHeaderStyle, such as a style's
copyWith(...)
function.
Example
Given:
void copyWith(FHeaderStyle Function(FHeaderStyle) nestedStyle) {}
The following:
copyWith((style) => FHeaderStyle(...));
Can be replaced with:
copyWith(FHeaderStyle(...));
Implementation
@useResult
FHeaderStyle call(Object? _) => this as FHeaderStyle;