initMethods property

List<String> initMethods
final

List of initialization methods to invoke on the created pod.

These methods must exist on the returned object.

Example:

@Pod(initMethods: ['init'])
Cache createCache() => Cache();

Implementation

final List<String> initMethods;