I want to ensure I don't ever accidentally pass a negative value to my class is there any way to require the cycleCount variable to be positive the way I require it to be an int or do I just have to implement checks within the code using it?
class TimerPage extends StatefulWidget {
final int cycleCount;
final int workTime;
final int breakTime;
const TimerPage(
{super.key,
required this.cycleCount,
required this.workTime,
required this.breakTime});
@override
State<TimerPage> createState() => _TimerPageState();
}