of static method

Returns the DrishyaEditingController most closely associated with the given context.

Returns null if there is no DrishyaEditingController associated with the given context.

Implementation

static DrishyaEditingController? of(BuildContext context) {
  final result = context
      .dependOnInheritedWidgetOfExactType<PhotoEditingControllerProvider>();
  return result?.controller;
}