of static method
The state from the closest instance of this class that encloses the given context.
Implementation
static FToasterState of(BuildContext context) => context.findAncestorStateOfType<FToasterState>()!;
The state from the closest instance of this class that encloses the given context.
static FToasterState of(BuildContext context) => context.findAncestorStateOfType<FToasterState>()!;