Skip to content

Latest commit

History

History
21 lines (12 loc) 路 674 Bytes

File metadata and controls

21 lines (12 loc) 路 674 Bytes

Using context.mounted in Flutter 3.7

Up until recently, it wasn't possible to check if a StatelessWidget was mounted in Flutter.

But since Flutter 3.7, BuildContext itself has a mounted property! 馃帀

This makes it easy to check if any widget is mounted.

That's a great quality-of-life improvement. 馃憣


Found this useful? Show some love and share the original tweet 馃檹


Previous Next
Using serverTimestamp() in Firestore Got linter issues? Use dart fix --apply