title: Override gives me an error I cant find the function
body: <p><em>Use <code>;</code> instead of <code>{}</code> for empty constructor bodies.dart(empty_constructor_bodies)
  A function body must be provided.
  Try adding a function body.dart(missing_function_body)</em></p>
  
  <pre><code>import 'package:flutter/material.dart';
  import './question.dart';
  import './answer.dart';
  
  class Quiz extends StatelessWidget {
    final int questionIndex;
    final List&lt;Map&lt;String, Object&gt;&gt; questions;
    final Function answerQuestion;
  
    Quiz(this.questionIndex,this.questions,this.answerQuestion)
  
    @override
  
    Widget build(BuildContext context) {
      return Column(
                  children: [
                    Question(
                      questions[questionIndex]['questionText'],
                    ),
                    ...(questions[questionIndex]['answers'] as List&lt;String&gt;)
                        .map((answer) {
                      return Answer(answerQuestion, answer);
                    }).toList()
                  ],
                );
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bwYKc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bwYKc.png" alt="image"></a>  </p>