startTracking method
The function startTracking
invokes a method on a method channel and returns a Future
that
resolves to a String
or null
.
@param trackingProfile - The trackingProfile parameter is the profile or configuration that you
want to use for tracking. It could be an object or a string that contains the necessary
information for starting the tracking process.
@returns The method is returning a Future object that resolves to a String or null.
Implementation
@override
Future<String?> startTracking(trackingProfile) async {
final returnVal = await methodChannel.invokeMethod<String>(
'startTracking', trackingProfile);
return returnVal;
}