getTime method
Retrieves the current time.
Implementation
@override
/// Retrieves the current time.
@override
Future<String> getTime() async {
DateTime now = DateTime.now();
// String date = '${now.year}-${now.month}-${now.day}';
String time = '${now.hour}:${now.minute}:${now.second}';
return time;
}