title: How to check object class type in Dart
body: <p>In my code, there is a place where I need to take different actions based on the input class type. 
  So I write two lines to check an input object's class type. </p>
  
  <pre><code>debugPrint("Let me know the next action: $action");
  debugPrint((action is LoadPomodorosAction).toString());
  </code></pre>
  
  <p>And the output is </p>
  
  <pre><code>I/flutter (24128): Let me know the next action: Instance of 'LoadPomodorosAction'
  I/flutter (24128): false
  </code></pre>
  
  <p>What does this mean?
  The object 'action' is "Instance of 'LoadPomodorosAction'" and at the same time its class type is not LoadPomodorosAction . </p>
  
  <p>how do I adjust my code so that I can know the class type of action?
  I was suspecting that maybe there is something wrong with runtimetype. But how do I get to know the runtimetype?</p>