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