instanceFieldsAndMethods property
Any instance fields that should be copied to the adapter.
Should terminate in ;
if required.
Implementation
@override
List<String> get instanceFieldsAndMethods {
final fieldsToColumns = unignoredFields.fold<List<String>>([], (fields, field) {
final definition = generateGraphqlDefinition(field);
fields.add(definition);
return fields;
});
return [
'@override\nfinal fieldsToGraphqlRuntimeDefinition = <String, RuntimeGraphqlDefinition>{${fieldsToColumns.join(',\n')}};',
];
}