Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ abstract class _AbstractAuthRequestHandler {
/// Exports the users (single batch only) with a size of maxResults and starting from
/// the offset as specified by pageToken.
///
/// maxResults - The page size, 1000 if undefined. This is also the maximum
/// maxResults - The page size, 1000 if not specified. This is also the maximum
/// allowed limit.
///
/// pageToken - The next page token. If not specified, returns users starting
Expand Down
2 changes: 1 addition & 1 deletion packages/dart_firebase_admin/lib/src/auth/base_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ abstract class _BaseAuth {
/// See https://firebase.google.com/docs/auth/admin/manage-users#list_all_users
/// for code samples and detailed documentation.
///
/// - maxResults - The page size, 1000 if undefined. This is also
/// - maxResults - The page size, 1000 if not specified. This is also
/// the maximum allowed limit.
/// - pageToken - The next page token. If not specified, returns
/// users starting without any offset.
Expand Down
2 changes: 1 addition & 1 deletion packages/dart_firebase_admin/lib/src/auth/tenant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Tenant {
try {
emailSignInConfig = _EmailSignInConfig.fromServerResponse(response);
} catch (e) {
// If allowPasswordSignup is undefined, it is disabled by default.
// If allowPasswordSignup is `null`, it is disabled by default.
emailSignInConfig = _EmailSignInConfig(
enabled: false,
passwordRequired: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class TenantManager {
/// starting from the offset as specified by [pageToken]. This is used to
/// retrieve all the tenants of a specified project in batches.
///
/// [maxResults] - The page size, 1000 if undefined. This is also
/// [maxResults] - The page size, 1000 if not specified. This is also
/// the maximum allowed limit.
/// [pageToken] - The next page token. If not specified, returns
/// tenants starting without any offset.
Expand Down
2 changes: 1 addition & 1 deletion packages/dart_firebase_admin/lib/src/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ String get dartVersion =>
Platform.version.split(RegExp('[^0-9]')).take(3).join('.');

/// Generates the update mask for the provided object.
/// Note this will ignore the last key with value undefined.
/// Note this will ignore the last key with value `null`.
List<String> generateUpdateMask(
Object? obj, {
List<String> terminalPaths = const [],
Expand Down
16 changes: 6 additions & 10 deletions packages/google_cloud_firestore/lib/src/document.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Optional<T> {
/// Firestore database. The data can be extracted with [data].
///
/// For a DocumentSnapshot that points to a non-existing document, any data
/// access will return 'undefined'. You can use the
/// [exists] property to explicitly verify a document's existence.
/// access will return `null`. You can use the [exists] property to explicitly
/// verify a document's existence.
@immutable
class DocumentSnapshot<T> {
const DocumentSnapshot._({
Expand Down Expand Up @@ -195,19 +195,15 @@ class DocumentSnapshot<T> {
/// ```
bool get exists => _fieldsProto != null;

/// Retrieves all fields in the document as an object. Returns 'undefined' if
/// Retrieves all fields in the document as an object. Returns `null` if
/// the document doesn't exist.
///
/// Returns an object containing all fields in the document or
/// 'null' if the document doesn't exist.
///
/// ```dart
/// final documentRef = firestore.doc('col/doc');
///
/// documentRef.get().then((documentSnapshot) {
/// final data = documentSnapshot.data();
/// print('Retrieved data: ${JSON.stringify(data)}');
/// });
/// final documentSnapshot = await documentRef.get();
/// final data = documentSnapshot.data();
/// print('Retrieved data: ${jsonEncode(data)}');
/// ```
T? data() {
final fieldsProto = _fieldsProto;
Expand Down
Loading