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