Answers for "dart check type of variable"

2

dart check type of variable

class Foo { }

main() {
  var foo = new Foo();
  if (foo is Foo) {
    print("it's a foo!");
  }
}
Posted by: Guest on April-29-2021

Code answers related to "dart check type of variable"

Browse Popular Code Answers by Language