resize method

Future<void> resize(
  1. FlutterAngleTexture texture,
  2. AngleOptions options
)

Implementation

Future<void> resize(FlutterAngleTexture texture, AngleOptions options) async{
  final element = texture.surfaceId as html.HTMLCanvasElement;
  element.width = (options.width * options.dpr).toInt();
  element.height = (options.height * options.dpr).toInt();
}