getType abstract method

Type getType()

Returns the captured generic type with all type arguments preserved.

This is the primary method for accessing the runtime type information that would otherwise be lost with standard runtimeType checks.

Example:

final ref = ParameterizedTypeReference<List<String>>();
Type t = ref.getType(); // List<String>

Implementation

Type getType();