generate method
void
generate(
- OutputFileOptions<
ObjcOptions> generatorOptions, - Root root,
- StringSink sink, {
- required String dartPackageName,
override
Generates Objc file of type specified in generatorOptions
Implementation
@override
void generate(
OutputFileOptions<ObjcOptions> generatorOptions,
Root root,
StringSink sink, {
required String dartPackageName,
}) {
if (generatorOptions.fileType == FileType.header) {
const ObjcHeaderGenerator().generate(
generatorOptions.languageOptions,
root,
sink,
dartPackageName: dartPackageName,
);
} else if (generatorOptions.fileType == FileType.source) {
const ObjcSourceGenerator().generate(
generatorOptions.languageOptions,
root,
sink,
dartPackageName: dartPackageName,
);
}
}