checkForBinary static method

Future<bool?> checkForBinary(
  1. String filename
)

method to check if binary file exists or not

Implementation

static Future<bool?> checkForBinary(String filename) async {
  try {
    final bool? result =
        await _channel.invokeMethod('checkForBinary', {"filename": filename});
    return result;
  } catch (error) {
    return null;
  }
}