find method

ReactterInstance? find(
  1. Object? instance
)

Get the ReactterInstance of instance given.

If found it, returns it, else returns null.

Implementation

ReactterInstance? find(Object? instance) {
  try {
    return _reactterInstanceManager.instances
        .firstWhere((element) => element.instance == instance);
  } catch (e) {
    return null;
  }
}