build method

  1. @override
String build()
override

Implementation

@override
String build() {
  final parts = inputFile?.parts ?? [];
  if (parts.isEmpty) {
    return OneLine(depth: depth, body: '$package ${options.javaPackageName};')
        .build();
  } else {
    return OneLine(
            depth: depth,
            body:
                '$package ${options.javaPackageName}.${inputFile?.javaPackagePostfix()};')
        .build();
  }
}