openFile static method
Future<void>
openFile(
{ - required String filePath,
- required Size size,
- String errorMsg = '''Can't open this file''',
})
Implementation
static Future<void> openFile(
{required String filePath,
required Size size,
String errorMsg = '''Can't open this file'''}) async {
try {
//await OpenFilex.open(filePath);
//print("type=${result.type} message=${result.message}");
} catch (e) {
Loader.showSnackBar(
context: Get.context!,
label: 'Error: ',
text: errorMsg,
color: Colors.red,
fontSize: size.width * 0.045);
}
}