FlameGame constructor

FlameGame({
  1. Camera? camera,
})

Implementation

FlameGame({Camera? camera}) {
  assert(
    Component.staticGameInstance == null,
    '$this instantiated, while another game ${Component.staticGameInstance} '
    'declares itself to be a singleton',
  );
  _cameraWrapper = CameraWrapper(camera ?? Camera(), children);
}