- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
10 lines
243 B
Dart
10 lines
243 B
Dart
import 'package:objectid/objectid.dart';
|
|
|
|
ObjectId objectIdFromJson(String json) {
|
|
return ObjectId.fromHexString(
|
|
json.replaceFirst('ObjectId(', '').replaceAll(')', ''));
|
|
}
|
|
|
|
String objectIdToJson(ObjectId o) {
|
|
return o.toString();
|
|
}
|