flutterMethodsFromSuperClasses method

Iterable<Method> flutterMethodsFromSuperClasses()

A list of Flutter methods inherited from the ProxyApi that this ProxyApi extends.

This also recursively checks the ProxyApi that the super class extends and so on.

This also includes methods that super classes inherited from interfaces with implements.

Implementation

Iterable<Method> flutterMethodsFromSuperClasses() sync* {
  for (final AstProxyApi proxyApi in allSuperClasses().toList().reversed) {
    yield* proxyApi.flutterMethods;
  }
  if (superClass != null) {
    final Set<AstProxyApi> interfaceApisFromSuperClasses =
        superClass!.associatedProxyApi!._recursiveFindAllInterfaceApis();
    for (final AstProxyApi proxyApi in interfaceApisFromSuperClasses) {
      yield* proxyApi.methods;
    }
  }
}