E/flutter (14495): [ERROR:flutter/shell/common/shell.cc(94)] Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'serviceMain' declared.
E/flutter (14495): Receiver: top-level
E/flutter (14495): Tried calling: serviceMain, stack trace: #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:218)
E/flutter (14495):
E/flutter (14495): [ERROR:flutter/runtime/dart_isolate.cc(707)] Could not resolve main entrypoint function.
E/flutter (14495): [ERROR:flutter/runtime/dart_isolate.cc(191)] Could not run the run main Dart entrypoint.
E/flutter (14495): [ERROR:flutter/runtime/runtime_controller.cc(382)] Could not create root isolate.
E/flutter (14495): [ERROR:flutter/shell/common/shell.cc(574)] Could not launch engine with configuration.
Could you confirm the issue please? and help me to find a workaround.