fromNativePtr static method

CameraCallback fromNativePtr(
  1. Pointer<Void> ptr
)

Implementation

static CameraCallback fromNativePtr(Pointer<Void> ptr) {
    final listener = _pointerToListener[ptr];
    if (listener == null) {
        throw Exception();
    }
    return listener;
}