of static method

  1. @useResult
FHeaderData of(
  1. BuildContext context
)

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!;
}