flutter check if location enabled
// Using Permission Handler Package
if (await Permission.locationWhenInUse.serviceStatus.isEnabled) {
// Use location.
}
//Using Location Package
var location = Location();
if ( await location.serviceEnabled()){
// Use location
}