captureResultGeneric<T> method
- @internal
- @nonVirtual
- @inlineVm
- @inlineJs
- T callback<
R>( - Parser<
R> self
- Parser<
Internal helper to capture the generic type R
of the parse result. This
makes it possible to wrap the parser without loosing type information.
Implementation
@internal
@nonVirtual
@inlineVm
@inlineJs
T captureResultGeneric<T>(T Function<R>(Parser<R> self) callback) =>
callback<R>(this);