initAssets method

Future<void> initAssets(
  1. BuildStep buildStep
)

Populates assets with all .graphql and .graphqls files found under lib/ for the current BuildStep.

Implementation

Future<void> initAssets(BuildStep buildStep) async {
  assets.clear();
  assets.addAll(await buildStep.findAssets(inputFiles).toList());
  assets.addAll(await buildStep.findAssets(inputFiles2).toList());
}