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 |