findOrNull method

  1. @override
T? findOrNull()
override

Get the controller if it exists, otherwise null

Implementation

@override
T? findOrNull() {
  if (scope != null) {
    return scope!.find<T>(tag: tag);
  } else {
    return Zen.findOrNull<T>(tag: tag);
  }
}