How to get the current time using Event Channel?
I need to get current time using Event Channel.Receive on button click. I don't understand how to write code in kotlin file. How can I get the current time using Event Channel?
I have attached the Flutter code and kotlin file below.
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State createState() => _HomePageState();
}
class _HomePageState extends State {
static const EventChannel _eventPlatform =...