title: Flutter local notification int id parameter
body: <p>I am using the flutter local notification plugin to notify the user that the event starts.</p>
  <p>All the events are stored in firebase with date and time.</p>
  <p>If the user adds the event to his schedule he gets notified.</p>
  <p>My problem is that the local notification plugin needs an <strong>int</strong> in the parameter and in firebase I have the id type String (the event are added in firebase with another webapp which generate String ID).</p>
  <p>So is there a way in flutter to make the notification work with a String ID?</p>
  <p>This is the database:</p>
  <p><img src="https://i.stack.imgur.com/meTFO.jpg" alt="enter image description here" /></p>
  <pre><code>   lass DetailScreen extends StatefulWidget {
    final String id;
    DetailScreen(this.id);
  
    @override
    _DetailScreenState createState() =&gt; _DetailScreenState();
  }
  
  class _DetailScreenState extends State&lt;DetailScreen&gt; {
    String firstHalf;
  
    String secondHalf;
  
    bool flag = true;
  
    int selectedValue;
  
    bool isScheduled = false;
  
    bool isLoading = true;
  
    initState() {
      selectedValue = 0;
      Future.delayed(Duration(seconds: 0), () async {
        await getStatus();
        final response = await flutterLocalNotificationsPlugin
            .getNotificationAppLaunchDetails();
        if (response.didNotificationLaunchApp) {
          await Provider.of&lt;ShowsModel&gt;(context, listen: false).getShows();
          await Provider.of&lt;ChannelModel&gt;(context, listen: false).getChannels();
        }
        setState(() {
          isLoading = false;
        });
      });
      super.initState();
    }
  
    showNotification(String title, DateTime showTime) async {
      var android = AndroidNotificationDetails(
          'channel id', 'channel name', 'channel description',
          enableVibration: true,
          playSound: true,
          importance: Importance.High,
          priority: Priority.High);
      var iOS = IOSNotificationDetails();
      var platform = NotificationDetails(android, iOS);
      new DateTime.now().add(Duration(seconds: 10));
      await flutterLocalNotificationsPlugin.schedule(
          int.parse(widget.id),
          title,
          'The show is about to start in 15 minutes',
          showTime.subtract(Duration(minutes: 15)),
          platform,
          payload: widget.id);
    }
  </code></pre>