offsetRegExp top-level property

RegExp offsetRegExp
final

Test this regexp online at https://regex101.com/r/mem3xt/1

Implementation

final offsetRegExp =
    RegExp(r'^(?<sign>[+\-]?)(?<hours>\d{2}):?(?<minutes>\d{2})$');