title: How can i pass arguments from my native code to flutter via intent?
body: <p>i am launching a specific route in flutter using <strong>Intent</strong> like below</p>
  <pre class="lang-kotlin prettyprint-override"><code>class NotificationService : FirebaseMessagingService() {
      override fun onMessageReceived(remoteMessage: RemoteMessage) {
          if(remoteMessage.data.isNotEmpty()) {
              val intent = Intent(this, MainActivity::class.java)
              intent.putExtra(&quot;route&quot;,&quot;/specific_route_name&quot;);
              intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
              startActivity(intent);
          }
      }
  }
  </code></pre>
  <p>and my onGenerated function is responsible to handle and launch that flutter screen like below</p>
  <pre class="lang-dart prettyprint-override"><code>static Route&lt;dynamic&gt; generateRoute(RouteSettings settings) {
      switch (settings.name) {
        case '/':
          return CupertinoPageRoute(builder: (_) =&gt; MyHomePage());
        case '/specific_route_name':
          return CupertinoPageRoute(builder: (_) =&gt; SpecificPage());
        default:
          return CupertinoPageRoute(
            builder: (_) =&gt; Scaffold(
              body: Center(
                child: Text('No route defined for ${settings.name}'),
              ),
            ),
          );
      }
    }
  </code></pre>
  <p>now how can i pass data too? via that intent i tried <strong>intent.putExtra(&quot;data&quot;)</strong> &amp; <strong>intent.putExtra(&quot;argument&quot;)</strong> (just tried my dumb luck)</p>