maybeOf static method

DbLensController? maybeOf(
  1. BuildContext context
)

Returns null when no DbLensControllerScope ancestor exists.

Implementation

static DbLensController? maybeOf(BuildContext context) {
  return context
      .getInheritedWidgetOfExactType<_DbLensControllerInherited>()
      ?.controller;
}