track method
Log a custom analytics event
Implementation
@override
Future<void> track(
String name, {
Map<String, dynamic>? properties,
List<String>? tags,
}) async {
try {
await methodChannel.invokeMethod('track', {
'name': name,
'properties': properties,
'tags': tags,
});
} on PlatformException catch (e) {
throw GrovsException(e.message ?? 'Failed to track event', code: e.code);
}
}