isChainedCustomDocument method

bool isChainedCustomDocument(
  1. Map<String, dynamic>? document
)

Implementation

bool isChainedCustomDocument(Map<String, dynamic>? document) {
  if (document == null) {
    return false;
  }

  final previousDocumentKey = document['previousDocumentKey'];
  return document['enableDocumentChain'] == true &&
      previousDocumentKey is String &&
      previousDocumentKey.isNotEmpty;
}