futureOf function

TypeReference futureOf(
  1. String type
)

Implementation

TypeReference futureOf(String type) {
  return TypeReference(
    (b) => b
      ..symbol = 'Future'
      ..types.add(refer(type)),
  );
}