initialize method

Future<Map<String, dynamic>> initialize({
  1. Map<String, dynamic>? options,
})

Implementation

Future<Map<String, dynamic>> initialize(
    {Map<String, dynamic>? options}) async {
  Map<String, dynamic> _options = {};

  _options.addAll(options ?? {});

  final resp = await FlutterGlPlatform.instance.initialize_interface(options: _options);
  textureId = resp["textureId"];

  // used for web
  _options["divId"] = textureId.toString();
  openGL = OpenGL().init(_options);

  return resp;
}