Skip to content

Add method to get details from Dial Code#14

Open
SamadiPour wants to merge 3 commits intomiguelpruivo:masterfrom
SamadiPour:master
Open

Add method to get details from Dial Code#14
SamadiPour wants to merge 3 commits intomiguelpruivo:masterfrom
SamadiPour:master

Conversation

@SamadiPour
Copy link

No description provided.

(element) => element['dial_code'] == dialCode,
orElse: () => null,
);
if (data != null) return CountryDetails.fromMap(data);
Copy link
Owner

Choose a reason for hiding this comment

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

Can you please make it explicitly to return null if no condition is met? Also, please use the {} in if statements. Thank you!

@miguelpruivo miguelpruivo force-pushed the master branch 2 times, most recently from 354b478 to e84f3ba Compare June 22, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants