AstProxyApi class

Represents an API that wraps a native class.

Inheritance

Constructors

AstProxyApi({required String name, required List<Method> methods, List<String> documentationComments = const <String>[], required List<Constructor> constructors, required List<ApiField> fields, TypeDeclaration? superClass, Set<TypeDeclaration> interfaces = const <TypeDeclaration>{}, SwiftProxyApiOptions? swiftOptions, KotlinProxyApiOptions? kotlinOptions})
Parametric constructor for AstProxyApi.

Properties

attachedFields Iterable<ApiField>
All fields that are attached.
no setter
constructors List<Constructor>
List of constructors inside the API.
final
documentationComments List<String>
List of documentation comments, separated by line.
getter/setter pairinherited
fields List<ApiField>
List of fields inside the API.
getter/setter pair
flutterMethods Iterable<Method>
Methods implemented in Flutter.
no setter
hashCode int
The hash code for this object.
no setterinherited
hostMethods Iterable<Method>
Methods implemented in the host platform language.
no setter
interfaces Set<TypeDeclaration>
Name of the classes this class considers to be implemented.
getter/setter pair
kotlinOptions KotlinProxyApiOptions?
Options that control how Kotlin code will be generated for a specific ProxyApi.
final
methods List<Method>
List of methods inside the API.
getter/setter pairinherited
name String
The name of the API.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superClass TypeDeclaration?
Name of the class this class considers the super class.
getter/setter pair
swiftOptions SwiftProxyApiOptions?
Options that control how Swift code will be generated for a specific ProxyApi.
final
unattachedFields Iterable<ApiField>
All fields that are not attached.
no setter

Methods

allSuperClasses() Iterable<AstProxyApi>
A list of AstProxyApis where each extends the API that follows it.
apisOfInterfaces() Iterable<AstProxyApi>
All ProxyApis this API implements and all the interfaces those APIs implements.
flutterMethodsFromInterfaces() Iterable<Method>
All methods inherited from interfaces and the interfaces of interfaces.
flutterMethodsFromSuperClasses() Iterable<Method>
A list of Flutter methods inherited from the ProxyApi that this ProxyApi extends.
hasAnyFlutterMessageCalls() bool
Whether the API has any message calls from host to Dart.
hasAnyHostMessageCalls() bool
Whether the API has any message calls from Dart to host.
hasCallbackConstructor() bool
Whether the API has a method that callbacks to Dart to add a new instance to the InstanceManager.
hasMethodsRequiringImplementation() bool
Whether the host proxy API class will have methods that need to be implemented.
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