postFrame method
Used to update widget in next frame
Implementation
void postFrame(VoidCallback callback) {
Future.delayed(Duration.zero, () {
if (mounted) callback();
});
}
Used to update widget in next frame
void postFrame(VoidCallback callback) {
Future.delayed(Duration.zero, () {
if (mounted) callback();
});
}