Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Conversation

@MichielVrins
Copy link
Contributor

No description provided.

}

Widget _buildLoginWidget() {
final profileId = selectedProfileId;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there really a need for this variable? 🤔 You can use selectedProfileId

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dart takes a similar approach to null safety as Kotlin does, so checking if a variable is null is not enough if it's mutable. Similar to why we use ?.let in Kotlin. In Dart however this check is enough when the variable is final.

@MichielVrins MichielVrins merged commit 89aa20a into develop May 2, 2023
@MichielVrins MichielVrins deleted the feature/FP-87 branch May 2, 2023 12:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants