maybeOf static method

DesignTapTargets? maybeOf(
  1. BuildContext context
)

The nearest DesignTapTargetScope's floors, or null when there is none.

Implementation

static DesignTapTargets? maybeOf(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<DesignTapTargetScope>()
    ?.targets;