IRTimeModel class
IRTimeModel used for working with time for example in IRTimePicker when you choose your time you will take an IRTimeModel? object. use IRTimeModel.fromDuration for get IRTimeModel from your Duration object. use IRTimeModel.fromString for get IRTimeModel from String which must have a standard format. (e.g => 20:57:23 or 20:57) use toDuration for convert IRTimeModel to Duration object. use toString for convert IRTimeModel to String object.
Constructors
- IRTimeModel({int day = 0, required int hour, required int minute, int second = 0})
- IRTimeModel.fromDuration(Duration duration)
-
factory
- IRTimeModel.fromString(String string)
-
NOTE: IRTimeModel.fromString does not work with the day!
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDuration(
) → Duration -
toString(
{bool showSecond = false}) → String -
Use
showSecond
to show seconds in your string time. NOTE: toString does not show the day!override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited