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