Signature class

Represents the signature of a Dart method, categorizing its parameters.

This is a stop-gap due to https://github.com/dart-lang/sdk/issues/60597, and this code should be removed once that bug is fixed.

Constructors

Signature({required List<String> positionalParameters, required List<String> positionalOptionalParameters, required List<String> namedParameters, required List<String> namedOptionalParameters})
Creates a new Signature instance.
const
Signature.parseMethodSignature(String signature)
Parses a Dart method signature string and returns a Signature instance.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
namedOptionalParameters List<String>
List of optional named parameter names, enclosed in {}.
final
namedParameters List<String>
List of required named parameter names, preceded by required.
final
positionalOptionalParameters List<String>
List of optional positional parameter names, enclosed in [].
final
positionalParameters List<String>
List of required positional parameter names.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseArguments(CallWithArguments call) → ({Map<String, Constant?> named, List<Constant?> positional})
toString() String
A string representation of this object.
override

Operators

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