From 7496ca5ffc2c8c3d8455b456924b6cae325a70a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Fri, 29 Dec 2023 11:16:54 +0100 Subject: [PATCH] Make EnumGenerator.className non nullable --- protoc_plugin/lib/src/enum_generator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc_plugin/lib/src/enum_generator.dart b/protoc_plugin/lib/src/enum_generator.dart index a9f7536b..5c656768 100644 --- a/protoc_plugin/lib/src/enum_generator.dart +++ b/protoc_plugin/lib/src/enum_generator.dart @@ -15,7 +15,7 @@ class EnumGenerator extends ProtobufContainer { final ProtobufContainer? parent; @override - final String? classname; + final String classname; @override final String fullName; @@ -110,7 +110,7 @@ class EnumGenerator extends ProtobufContainer { 'class $classname extends $protobufImportPrefix.ProtobufEnum {', '}\n', [ NamedLocation( - name: classname!, fieldPathSegment: fieldPath, start: 'class '.length) + name: classname, fieldPathSegment: fieldPath, start: 'class '.length) ], () { // ----------------------------------------------------------------- // Define enum types.