TextureSettings.fromJsonFile constructor

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

Parses json; throws FormatException on a missing or mistyped field.

Implementation

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