getType abstract method

Type? getType()

Returns the Type provided by this TypeProvider.

This method returns the actual Type object that this provider represents. The Type may be obtained from various sources such as field declarations, method signatures, or other type-bearing constructs.

Returns:

  • The Type object provided by this provider
  • null if no type is available

Example:

@override
Type? getType() {
  // Return the type from whatever source this provider represents
  return _field.getType();
}

Implementation

Type? getType();