createOrUpdateActivity method
Future
createOrUpdateActivity(
- String customId,
- Map<
String, dynamic> data, { - bool removeWhenAppIsKilled = false,
- Duration? staleIn,
override
Implementation
@override
Future createOrUpdateActivity(
String customId,
Map<String, dynamic> data, {
bool removeWhenAppIsKilled = false,
Duration? staleIn,
}) async {
final staleInMinutes =
(staleIn?.inMinutes ?? 0) >= 1 ? staleIn?.inMinutes : null;
return methodChannel.invokeMethod('createOrUpdateActivity', {
'customId': customId,
'data': data,
'removeWhenAppIsKilled': removeWhenAppIsKilled,
'staleIn': staleInMinutes,
});
}