fromBytes method

  1. @override
Future<Texture?> fromBytes(
  1. Uint8List bytes
)
override

bytes - the loaded bytes of the file

Implementation

@override
Future<Texture?> fromBytes(Uint8List bytes) async{
  final String url = String.fromCharCodes(bytes).toString().substring(0,50);
  final ImageElement? image = await ImageLoader(manager,flipY).fromBytes(bytes);
  return _textureProcess(image,url);
}