From 6f09942b798c0d434894dd3fcca5278e3aa7e20d Mon Sep 17 00:00:00 2001 From: Maxeem Date: Tue, 10 Oct 2023 04:02:17 -0300 Subject: [PATCH] mark constructors as const --- lib/src/positive_double.dart | 2 +- lib/src/positive_int.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/positive_double.dart b/lib/src/positive_double.dart index 7154e0d..26d6c18 100644 --- a/lib/src/positive_double.dart +++ b/lib/src/positive_double.dart @@ -3,7 +3,7 @@ part of 'package:positive_num/src/positive_num.dart'; final class PositiveDouble extends PositiveNum { - PositiveDouble._(double value) : super._(value); + const PositiveDouble._(double value) : super._(value); static ({String? error, PositiveDouble? instance}) create(double value) { return value > 0 diff --git a/lib/src/positive_int.dart b/lib/src/positive_int.dart index 78cadcf..1ac958e 100644 --- a/lib/src/positive_int.dart +++ b/lib/src/positive_int.dart @@ -3,7 +3,7 @@ part of 'package:positive_num/src/positive_num.dart'; final class PositiveInt extends PositiveNum { - PositiveInt._(int value) : super._(value); + const PositiveInt._(int value) : super._(value); static ({String? error, PositiveInt? instance}) create(int value) { return value > 0