class extends InheritedWidget { const ({ Key key, @required Widget child, }) : assert(child != null), super(key: key, child: child); static of(BuildContext context) { return context.inheritFromWidgetOfExactType() as ; } @override bool updateShouldNotify( old) { return ; } } B で {} (閉じ中括弧) P で () (閉じ括弧) ショートカットキー Windows: Ctrl + J Mac: ⌘ + J Settings ⇒ Editor ⇒ Live Templates でカスタムテンプレートの追加ができます。 A