generate abstract method

Future<Snippet> generate(
  1. dynamic lib,
  2. dynamic step
)

Generates Dart code for an input Dart library.

May create additional outputs through the buildStep, but the 'primary' output is Dart code returned through the Future. If there is nothing to generate for this library may return null, or a Future that resolves to null or the empty string.

Implementation

Future<Snippet> generate(LibraryReader lib, BuildStep step);