title: flutter) When calling a class, I want to get a specific string or function from the calling page
body: <p>I want to get several strings such as initialVideoId: and next page in it while executing Video0_01().</p>
  <p>I have Video0_01(
  I thought I could put it inside () like color: Color).</p>
  <pre><code>                  onTap: () async {
                      await Navigator.pushReplacement(context, MaterialPageRoute(builder: (context){
                        return Video0_01(
                          
                        );
  
  
  
  
  class Video0_01 extends StatefulWidget {
    Video0_01({
      Key ?key,
      required this.text1,
      this.YoutubeID ='',
      this.favorite='',
      this.favorite2='',
      this.back='',
      this.next='',
  
  
    }) : super(key: key);
  
    final String text1;
    final String YoutubeID;
    final String favorite;
    final String favorite2;
    final String back;
    final String next;
  </code></pre>
  <p>However, I wrote the code below using required, and tried to get the string to be put inside from video(), but it didn't work.
  The content you want to include is the next page, the class of the previous page, and the YouTube ID.</p>