toIso method

String toIso({
  1. String? timeFormat = "hh:mm a",
})

Implementation

String toIso({String? timeFormat = "hh:mm a"}) {
  return DateFormat(timeFormat)
      .format(DateFormat("HH:mm").parse("${this?.hour}:${this?.minute}"));
}