update<T> static method

void update<T>(
  1. BuildContext context,
  2. T newModel
)

Implementation

static void update<T>(BuildContext context, T newModel) {
  final _ScalingFactorBindingScope<dynamic> scope = context.dependOnInheritedWidgetOfExactType<_ScalingFactorBindingScope<T>>()!;
  scope.scalingFactorBindingState.updateModel(newModel);
}