extensionBuilder function

Builder extensionBuilder(
  1. BuilderOptions options
)

Returns an instance of SharedPartBuilder.

  • JsonGenerator builds an extension providing the functions: toJson, toJsonEncoded and fromJson.
  • ValueGenerator builds an extension providing enum value getters.

Implementation

Builder extensionBuilder(BuilderOptions options) {
  return SharedPartBuilder([
    ValueGenerator(),
    JsonGenerator(),
  ], 'extension_builder');
}