Image

dart

Tips & tricks

Tips with Dart so on Flutter

1 min read
Last update: November 28, 2021
String boolAsString = 'true';
bool myBool = boolAsString == 'true';

if(myBool) {
  // do stuff
}