Skip to content

Commit

Permalink
kIsWeb on generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vicenterusso committed May 8, 2024
1 parent 8e8280d commit 7df7733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/isar_generator/lib/src/object_info.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart' show kIsWeb;
import 'dart:convert';
import 'dart:typed_data';

Expand Down Expand Up @@ -177,7 +178,7 @@ class ObjectIndex {
final bool unique;
final bool replace;

late final id = _kIsWeb ? _generateSafeId(name) : _generateStandardId(name);
late final id = kIsWeb ? _generateSafeId(name) : _generateStandardId(name);

int _generateStandardId(String name) {
return xxh3(utf8.encode(name) as Uint8List);
Expand Down

0 comments on commit 7df7733

Please sign in to comment.