Skip to content

Instantly share code, notes, and snippets.

@legalcodes
Created April 23, 2019 20:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legalcodes/9fbfea4739aa064455e836dbc84cc62f to your computer and use it in GitHub Desktop.
Save legalcodes/9fbfea4739aa064455e836dbc84cc62f to your computer and use it in GitHub Desktop.
Mock _result function
void _result(bool success, [List<String> messages]) {
final joinedMessages = messages?.map((m) => m.toString())?.join(',') ?? '';
print('success: $success, "messages": $joinedMessages');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment