toTime method

String toTime()

Implementation

String toTime() => this > 0
    ? DateFormat('hh:mm aaa')
        .format(DateTime.fromMillisecondsSinceEpoch(this).toLocal())
    : toString();