generate method

  1. @override
List<Constructor> generate()
override

Implementation

@override
List<Constructor> generate() {
  final nativeConstructor = Constructor((cb) => cb
    ..requiredParameters.addAll([
      Parameter(
        (pb) => pb
          ..name = '_fileLoader'
          ..toThis = true,
      ),
      if (options.pluralSelector == PluralSelectorType.custom)
        Parameter((pb) => pb
          ..name = 'pluralSelector'
          ..toThis = true),
    ]));
  return [nativeConstructor];
}