Skip to content

Commit 50c7116

Browse files
committed
feat: Encoder and Decoder can return a Future
1 parent 024e7bc commit 50c7116

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/utils/user.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,4 @@ Future<User?> jsonStringToUser(Object? s) async {
5858
return User.fromJson(map);
5959
}
6060

61-
Future<String?> userToJsonString(User? u) async =>
62-
u == null ? null : jsonEncode(u);
61+
String? userToJsonString(User? u) => u == null ? null : jsonEncode(u);

0 commit comments

Comments
 (0)