getStoryMethod function

Method getStoryMethod(
  1. Class target
)

Implementation

Method getStoryMethod(Class target) {
  return Method(
    (p0) => p0
      ..name = 'getStory'
      ..returns = const Reference('Story')
      ..body = Code(
        getStoryWrapper(target),
      ),
  );
}