Skip to content

Commit

Permalink
Revert "Add "required" to example for null-safety (flutter#5416)" (fl…
Browse files Browse the repository at this point in the history
…utter#5479)

This reverts commit 3238fa2.
  • Loading branch information
kwalrath authored Mar 13, 2021
1 parent bf9f0f2 commit 95fa37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/development/ui/widgets-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Below are some simple widgets that combine these and other widgets:
import 'package:flutter/material.dart';
class MyAppBar extends StatelessWidget {
MyAppBar({required this.title});
MyAppBar({this.title});
// Fields in a Widget subclass are always marked "final".
Expand Down

0 comments on commit 95fa37e

Please sign in to comment.