instanceFieldsAndMethods property

  1. @override
List<String> get instanceFieldsAndMethods

Requires import 'package:gql/language.dart' as lang to be listed within requiredImports on the AggregateBuilder

Implementation

@override
List<String> get instanceFieldsAndMethods {
  final config = (fields as GraphqlFields).config;

  return [
    if (config?.queryOperationTransformerName != null)
      '@override\nfinal queryOperationTransformer = ${config!.queryOperationTransformerName};',
  ];
}