running formatter
This commit is contained in:
@@ -69,7 +69,8 @@ abstract class FirestoreHttpClient implements FirestoreClient {
|
||||
Future<List<DocumentSnapshot>> listDocumentSnapshots(String path) async {
|
||||
var list = <DocumentSnapshot>[];
|
||||
|
||||
var result = await (getJsonList("$path", extract: 'documents') as FutureOr<List<dynamic>>);
|
||||
var result = await (getJsonList("$path", extract: 'documents')
|
||||
as FutureOr<List<dynamic>>);
|
||||
|
||||
for (var item in result) {
|
||||
list.add(new DocumentSnapshot(this, item));
|
||||
|
||||
@@ -21,14 +21,16 @@ class PushIdGenerator {
|
||||
|
||||
static int? _lastPushTime;
|
||||
|
||||
static final List<int?> _lastRandChars = List<int?>.filled(12, null, growable: false);
|
||||
static final List<int?> _lastRandChars =
|
||||
List<int?>.filled(12, null, growable: false);
|
||||
|
||||
static String generatePushChildName() {
|
||||
int now = DateTime.now().millisecondsSinceEpoch;
|
||||
final bool duplicateTime = (now == _lastPushTime);
|
||||
_lastPushTime = now;
|
||||
|
||||
final List<String?> timeStampChars = List<String?>.filled(8, null, growable: false);
|
||||
final List<String?> timeStampChars =
|
||||
List<String?>.filled(8, null, growable: false);
|
||||
for (int i = 7; i >= 0; i--) {
|
||||
timeStampChars[i] = PUSH_CHARS[now % 64];
|
||||
now = (now / 64).floor();
|
||||
|
||||
Reference in New Issue
Block a user