diff --git a/flutter_package/bin/src/message.dart b/flutter_package/bin/src/message.dart index 8bcd6d93..f37053c6 100644 --- a/flutter_package/bin/src/message.dart +++ b/flutter_package/bin/src/message.dart @@ -246,7 +246,6 @@ Future generateMessageCode({ } final resourceNames = entry.value; for (final resourceName in resourceNames) { - print(resourceName); exportsDartLines.add("export './$subPath$resourceName.pb.dart';"); } } @@ -311,11 +310,11 @@ use std::sync::LazyLock; await insertTextToFile( rustPath, ''' -type ${messageName}Store = LazyLock<( +type ${messageName}Channel = LazyLock<( SignalSender>, SignalReceiver>, )>; -pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Store = +pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Channel = LazyLock::new(signal_channel); impl ${normalizePascal(messageName)} {