AndroidSettings.fromJsonFile constructor

AndroidSettings.fromJsonFile(
  1. Map<String, dynamic> json
)

Creates Android settings from a JSON map.

Throws TypeError if required fields are missing or have wrong types.

Implementation

AndroidSettings.fromJsonFile(Map<String, dynamic> json)
  : width = _requireInt(json, 'width'),
    height = _requireInt(json, 'height'),
    fps = _requireInt(json, 'fps');