title: A value of type 'Object?' can't be assigned to a variable of type 'Map<dynamic, dynamic>'. Its a Routing error
body: <p>The error is when I try to use the ModalRoute.of(context).settings.arguments I get an error. Also I want to save it in a map but can't.</p>
  <pre><code>Map data = {};
  data = ModalRoute.of(context).settings.arguments; // this is the error;
  </code></pre>
  <blockquote>
  <p>Error: A value of type 'Object?' can't be assigned to a variable of type 'Map&lt;dynamic, dynamic&gt;'.</p>
  </blockquote>
  <ul>
  <li>'Object' is from 'dart:core'.</li>
  <li>'Map' is from 'dart:core'.
  data = ModalRoute.of(context).settings.arguments;</li>
  </ul>