Skip to content

Commit

Permalink
set as optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmtydn committed Sep 15, 2024
1 parent 79b1488 commit 5eb6fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/hive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class Hive {
/// ```
static void registerAdapter<T>(
String typeName,
T? Function(dynamic json) fromJson,
T? Function(dynamic json) fromJson, [
Type? type,
) {
]) {
_typeRegistry.register<T>(Isar.fastHash(typeName), fromJson, type);
}

Expand Down

0 comments on commit 5eb6fe5

Please sign in to comment.