For more information and a geofencing example that uses background
execution of Dart code, see the Medium article by Ben Konyi,
Executing Dart in the Background with Flutter Plugins and
Geofencing.  At the end of this article,
you’ll find links to example code, and relevant documentation for Dart,
iOS, and Android.

See the Happy paths recommendations for more information 
on background processing.