builder method

LocalizationBuilder builder(
  1. NameFormatter nameFormatter
)

Create the LocalizationBuilder matching the Configuration with the specified nameFormatter.

Implementation

LocalizationBuilder builder(final NameFormatter nameFormatter) {
  switch (projectType) {
    case ProjectType.flutter:
      return FlutterLocalizationBuilder(this, nameFormatter);
    default:
      throw UnrecoverableException(
        'Project type is unsupported: $projectType',
        ExitCode.config.code,
      );
  }
}