Skip to content

371 - Unwrapping Multiple Optionals in Flutter and Dart

Compare
Choose a tag to compare
@vandadnp vandadnp released this 24 Nov 05:17
· 16 commits to main since this release
d712e1f

If you have multipel optional values which are needed for a single operation, you will need to check all of them for null and then perform your operation on them if all are non-null. Using this function you can simplify that task => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/unwrapping-multiple-optionals-in-flutter-and-dart/unwrapping-multiple-optionals-in-flutter-and-dart.md