GenericTypeParsingResult class

Represents the parsed structure of a generic type.

Contains the base type name, original type string, and any generic type arguments. This forms a recursive structure that can represent complex nested generic types.

{@template generic_parsing_result_example}

Example Structure

For type Map<String, List<int>>:

GenericTypeParsingResult(
  'Map',
  'Map<String, List<int>>',
  [
    GenericTypeParsingResult('String', 'String', []),
    GenericTypeParsingResult(
      'List', 
      'List<int>',
      [GenericParsingResult('int', 'int', [])]
    )
  ]
)

{@endtemplate}

Constructors

GenericTypeParsingResult(String base, String typeString, List<GenericTypeParsingResult> types)
Creates a new parsing result

Properties

base String
The base type name without generic parameters
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
types List<GenericTypeParsingResult>
List of generic type arguments (if any)
final
typeString String
The complete original type string
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited