firstPageKey property

String? get firstPageKey

The initial page key, derived from pageKeyType: int1, a nullable type → null. Other (non-int, non-nullable) types are unsupported and return null here — the developer must use a nullable key and the generator leaves firstPageKey abstract for them to provide.

Implementation

String? get firstPageKey {
  if (pageKeyType == 'int') return '1';
  if (pageKeyType.endsWith('?')) return 'null';
  return null;
}