createSurface method

Future<int> createSurface(
  1. int width,
  2. int height
)

This function needs to call native to prepare the texture All the other methods use FFI

Implementation

Future<int> createSurface(int width, int height) {
  return FlutterOpenglPlatform.instance.createSurface(width, height);
}