fromFile method
file
- the file to be loaded
Implementation
@override
Future<Texture?> fromFile(File file) async{
Uint8List bytes = await file.readAsBytes();
final String url = String.fromCharCodes(bytes).toString().substring(0,50);
final ImageElement? image = await ImageLoader(manager,flipY).fromBytes(bytes);
return _textureProcess(image,url);
}