parse method

  1. @override
ParseResult<Instant> parse(
  1. String text
)
override

Parses the given text value according to the rules of this pattern.

This method never throws an exception (barring a bug in Time Machine itself). Even errors such as the argument being null are wrapped in a parse result.

  • text: The text value to parse.

Returns: The result of parsing, which may be successful or unsuccessful.

Implementation

@override
ParseResult<Instant> parse(String text) => _pattern.parse(text);