getHour method

int getHour()

Hour from "HH:mm". "14:05" → 14

Implementation

int getHour() => int.parse(substring(0, 2));