diff --git a/quotes/lib/quote_card.dart b/quotes/lib/quote_card.dart index 4245052..e2127dc 100644 --- a/quotes/lib/quote_card.dart +++ b/quotes/lib/quote_card.dart @@ -4,8 +4,8 @@ import 'quote.dart'; class QuoteCard extends StatelessWidget { final Quote quote; - final Function delete; - QuoteCard({ this.quote, this.delete }); + final Function() delete; + QuoteCard({ required this.quote, required this.delete }); @override Widget build(BuildContext context) { @@ -42,4 +42,4 @@ class QuoteCard extends StatelessWidget { ) ); } -} \ No newline at end of file +}