delayedBack method
延时退出
Implementation
void delayedBack({int seconds = 2, result}) {
Future.delayed(Duration(seconds: seconds), () {
if (result != null) {
Get.back(result: result);
} else {
Get.back();
}
});
}
延时退出
void delayedBack({int seconds = 2, result}) {
Future.delayed(Duration(seconds: seconds), () {
if (result != null) {
Get.back(result: result);
} else {
Get.back();
}
});
}