Slide 17
Slide 17 text
class CupertinoPage extends Page {
const CupertinoPage({
required this.child,
this.maintainState = true,
this.title,
this.fullscreenDialog = false,
LocalKey? key,
String? name,
Object? arguments,
String? restorationId,
}) : super(
key: key,
name: name,
arguments: arguments,
restorationId: restorationId,
);
// ...
}
Dart 2.17 - Super parameters
class CupertinoPage extends Page {
const CupertinoPage({
required this.child,
this.maintainState = true,
this.title,
this.fullscreenDialog = false,
super.key,
super.name,
super.arguments,
super.restorationId,
});
// ...
}
01 近年、どのような進化を遂げてきたか
https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#2170---2022-05-11