registerWith static method Null safety

void registerWith(
  1. Registrar registrar
)

Registers this class as the default instance of CameraPlatform.

Implementation

static void registerWith(Registrar registrar) {
  CameraPlatform.instance = CameraPlugin(
    cameraService: CameraService(),
  );
}