base64Async property

Future<String>? base64Async

Convert File to base64 async

Implementation

Future<String>? get base64Async {
  if (this == null) {
    return null;
  } else {
    return readAsBytes().then(base64Encode);
  }
}