TimerSettings class

Represents timer settings for a user's Pomodoro timer configuration.

Constructors

TimerSettings({required int workDuration, required int shortBreakDuration, required int longBreakDuration, required int pomodorosUntilLongBreak})
const
TimerSettings.fromMap(Map<String, dynamic> data)
Creates a TimerSettings instance from a map.
factory
TimerSettings.fromSnapshot(dynamic snapshot)
Creates a TimerSettings instance from a Firestore document snapshot.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
longBreakDuration int
final
pomodorosUntilLongBreak int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortBreakDuration int
final
workDuration int
final

Methods

copyWith({int? workDuration, int? shortBreakDuration, int? longBreakDuration, int? pomodorosUntilLongBreak}) TimerSettings
Creates a copy of this TimerSettings with the given fields replaced with new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this TimerSettings instance to a map for Firestore storage.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

defaultSettings → const TimerSettings
Default timer settings following standard Pomodoro technique.