exists method

Future<bool> exists(
  1. String path
)

Implementation

Future<bool> exists(String path) async {
  try {
    await stat(path);
    return true;
  } on MeshagentException catch (error) {
    if (error.statusCode == 404) return false;
    rethrow;
  }
}