execute method

  1. @override
Future<Response> execute(
  1. ToolContext context,
  2. Map<String, dynamic> arguments
)
override

Implementation

@override
Future<Response> execute(ToolContext context, Map<String, dynamic> arguments) async {
  final zone = await FlutterTimezone.getLocalTimezone();
  final now = DateTime.now();
  return TextResponse(
    text: "${context.room.localParticipant!.getAttribute("name")}'s time info:\ntime: ${now.toIso8601String()}\nzone: ${zone.identifier}",
  );
}