ref method

  1. @override
DatabaseReference ref([
  1. String? path
])
override

Returns a DatabaseReference representing the location in the Database corresponding to the provided path. If no path is provided, the Reference will point to the root of the Database.

Implementation

@override
DatabaseReference ref([String? path]) {
  if (path != null) {
    return MockDatabaseReference(_volatileData).child(path);
  }
  return MockDatabaseReference(_volatileData);
}