📌  相关文章
📜  颤振检查是否启用了位置 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:08.905000             🧑  作者: Mango

代码示例1
// Using Permission Handler Package
if (await Permission.locationWhenInUse.serviceStatus.isEnabled) {
  // Use location.
}


//Using Location Package
var location = Location();
if ( await location.serviceEnabled()){
  // Use location
}