onForeground property

dynamic Function(ServiceInstance service)? onForeground
final

must be a top level or static method this method will be executed when app is in foreground

Implementation

final Function(ServiceInstance service)? onForeground;