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

day int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hour int
getter/setter pair
minute int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
getter/setter pair

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