of static method
Returns the FButtonData of the FButton in the given context
.
Contract
Throws AssertionError if there is no ancestor FButton in the given context
.
Implementation
@useResult
static FButtonData of(BuildContext context) {
final data = context.dependOnInheritedWidgetOfExactType<FButtonData>();
assert(data != null, 'No FButtonData found in context');
return data!;
}