offsetRegExp top-level property
Test this regexp online at https://regex101.com/r/mem3xt/1
Implementation
final offsetRegExp =
RegExp(r'^(?<sign>[+\-]?)(?<hours>\d{2}):?(?<minutes>\d{2})$');
Test this regexp online at https://regex101.com/r/mem3xt/1
final offsetRegExp =
RegExp(r'^(?<sign>[+\-]?)(?<hours>\d{2}):?(?<minutes>\d{2})$');