Skip to content

Commit

Permalink
mark constructors as const
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxeem committed Oct 10, 2023
1 parent e10eb6a commit 6f09942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/positive_double.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
part of 'package:positive_num/src/positive_num.dart';

final class PositiveDouble extends PositiveNum<double> {
PositiveDouble._(double value) : super._(value);
const PositiveDouble._(double value) : super._(value);

static ({String? error, PositiveDouble? instance}) create(double value) {
return value > 0
Expand Down
2 changes: 1 addition & 1 deletion lib/src/positive_int.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
part of 'package:positive_num/src/positive_num.dart';

final class PositiveInt extends PositiveNum<int> {
PositiveInt._(int value) : super._(value);
const PositiveInt._(int value) : super._(value);

static ({String? error, PositiveInt? instance}) create(int value) {
return value > 0
Expand Down

0 comments on commit 6f09942

Please sign in to comment.