fromMap static method

FlutterAngleTexture fromMap(
  1. dynamic map,
  2. CanvasElement? element,
  3. int fboId,
  4. AngleOptions options,
)

Implementation

static FlutterAngleTexture fromMap(
  dynamic map,
  CanvasElement? element,
  int fboId,
  AngleOptions options
) {
  return FlutterAngleTexture(
    map['textureId']! as int,
    map['rbo'] as int? ?? 0,
    map['metalAsGLTexture'] as int? ?? 0,
    map['surface'] as int? ?? 0,
    element,
    fboId,
    options
  );
}