SystemRegistry constructor Null safety

SystemRegistry(
  1. {required Parameters parameters,
  2. required AssetSystem assetSystem,
  3. RenderSystem? renderSystem,
  4. UpdateSystem? updateSystem,
  5. FactorySystem? factorySystem,
  6. TextureSystem? textureSystem,
  7. CameraSystem? cameraSystem,
  8. TextSystem? textSystem,
  9. DebugSystem? debugSystem}
)

Implementation

SystemRegistry(
    {required Parameters parameters,
    required AssetSystem assetSystem,
    RenderSystem? renderSystem,
    UpdateSystem? updateSystem,
    FactorySystem? factorySystem,
    TextureSystem? textureSystem,
    CameraSystem? cameraSystem,
    TextSystem? textSystem,
    DebugSystem? debugSystem})
    : parameters = parameters,
      renderSystem = renderSystem ?? RenderSystem(),
      updateSystem = updateSystem ?? UpdateSystem(),
      factorySystem = factorySystem ?? FactorySystem(),
      textureSystem = textureSystem ?? TextureSystem(),
      cameraSystem = cameraSystem ?? CameraSystem(),
      textSystem = textSystem ?? TextSystem(),
      assetSystem = assetSystem,
      debugSystem = debugSystem ?? DebugSystem();