parseTraversingFuture<V> method

V? parseTraversingFuture<V>(
  1. Object? value, [
  2. V? def
])

Same as parse but if this isFuture it will traverse to the Future argument.

Implementation

V? parseTraversingFuture<V>(Object? value, [V? def]) {
  if (isFuture) {
    var argument = argumentType(0);
    if (argument != null) {
      return argument.parse<V>(value);
    }
  }

  return parse<V>(value);
}