MethodInfo class

Captured information about a single method in a detected class.

Constructors

MethodInfo({required String name, required bool callsNotifyListeners, required String bodySnippet, bool isAsync = false, String returnType = 'void', bool isGetter = false, List<ParamInfo> parameters = const []})
Creates a MethodInfo.

Properties

bodySnippet String
Full body source text including braces or the => expr arrow.
final
callsNotifyListeners bool
True when the method calls notifyListeners(), emit(), or equivalent.
final
hashCode int
The hash code for this object.
no setterinherited
isAsync bool
True when the method body contains async/await.
final
isGetter bool
True for Dart getter declarations.
final
name String
Method name as it appears in source.
final
parameters List<ParamInfo>
Formal parameters of the method.
final
paramSource String
Comma-separated parameter list in source-compatible form.
no setter
returnType String
Source text of the declared return type.
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
toString() String
A string representation of this object.
inherited

Operators

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