maybeOf static method

TouchScaleStyle? maybeOf(
  1. BuildContext context
)

Returns the TouchScaleStyle most closely associated with the given context, and returns null if there is no TouchScaleStyle associated with the given context.

Implementation

static TouchScaleStyle? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<TouchScaleStyle>();
}