Skip to content

Commit

Permalink
fix(flutter_todos): improve assertion message (felangel#3893)
Browse files Browse the repository at this point in the history
  • Loading branch information
floan authored Jul 2, 2023
1 parent 0c52200 commit cef8418
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Todo extends Equatable {
this.isCompleted = false,
}) : assert(
id == null || id.isNotEmpty,
'id can not be null and should be empty',
'id must either be null or not empty',
),
id = id ?? const Uuid().v4();

Expand Down

0 comments on commit cef8418

Please sign in to comment.