build method

  1. @override
String build()
override

Implementation

@override
String build() {
  return CodeUnit.join([
    classSignature(),
    ...cloneDartCollectionType(
        methods: methods, fields: fields, depth: depth),
    if (hasConstructor) DartConstructor(className, fields, depth: depth + 1),
    if (hasConstructor) EmptyLine(),
    ...dartFields(),
    if (injectedJavaCodes != null) EmptyLine(),
    if (injectedJavaCodes != null) ...injectedJavaCodes!(depth),
    OneLine(depth: depth, body: '}')
  ]);
}