PlaceLocalTime class
Represents a local time with just hours and minutes. This class is based on the LocalTime class (available on SDK 26 and higher).
- Annotations
-
- @freezed
Constructors
- PlaceLocalTime({required int hours, required int minutes})
-
constfactory
-
PlaceLocalTime.fromJson(Map<
String, Object?> json) -
Parse an PlaceLocalTime from json.
factory
Properties
-
copyWith
→ $PlaceLocalTimeCopyWith<
PlaceLocalTime> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hours → int
-
The hours in 24 hour format (0 <= return value < 24).
no setterinherited
- minutes → int
-
The minutes (0 <= return value < 60).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited