of static method
Gets the state for the nearest DuckShell in the Widget tree.
Implementation
static DuckShellState of(BuildContext context) {
final shellState = maybeOf(context);
assert(shellState != null, 'Could not find a DuckShell!');
return shellState!;
}