parseOn method Null safety

  1. @override
Result<int> parseOn(
  1. Context context

Primitive method doing the actual parsing.

The method is overridden in concrete subclasses to implement the parser specific logic. The methods takes a parse context and returns the resulting context, which is either a Success or Failure context.


Result<int> parseOn(Context context) => context.success(context.position);