replaceTypeWithFuture abstract method

void replaceTypeWithFuture(
  1. TypeAnnotation typeAnnotation,
  2. TypeProvider typeProvider
)

Optionally create an edit to replace the given typeAnnotation with the type Future (with the given type annotation as the type argument). The typeProvider is used to check the current type, because if it is already Future no edit will be added.

Implementation

void replaceTypeWithFuture(
    TypeAnnotation typeAnnotation, TypeProvider typeProvider);