of static method

FluidResolver of(
  1. BuildContext buildContext
)

Retrieve the fluid resolver from the BuildContext

Implementation

static FluidResolver of(BuildContext buildContext) {
  final resolver =
      buildContext.dependOnInheritedWidgetOfExactType<FluidResolver>();

  if (resolver == null) {
    throw FlutterError("No FluidResolver found in context");
  }

  return resolver;
}