@@ -50,10 +50,9 @@ class ArnaTheme extends StatelessWidget {
50
50
///
51
51
/// See also:
52
52
///
53
- /// * [maybeBrightnessOf] , which returns null if no valid [ArnaTheme] or
54
- /// [MediaQuery] exists, instead of throwing.
55
- /// * [ArnaThemeData.brightness] , the property takes precedence over
56
- /// [MediaQueryData.platformBrightness] for descendant Arna widgets.
53
+ /// * [maybeBrightnessOf] , which returns null if no valid [ArnaTheme] or [MediaQuery] exists, instead of throwing.
54
+ /// * [ArnaThemeData.brightness] , the property takes precedence over [MediaQueryData.platformBrightness] for
55
+ /// descendant Arna widgets.
57
56
static Brightness brightnessOf (BuildContext context) {
58
57
final _InheritedArnaTheme ? inheritedTheme = context.dependOnInheritedWidgetOfExactType <_InheritedArnaTheme >();
59
58
return inheritedTheme? .theme.data.brightness ?? MediaQuery .of (context).platformBrightness;
@@ -68,10 +67,9 @@ class ArnaTheme extends StatelessWidget {
68
67
///
69
68
/// See also:
70
69
///
71
- /// * [ArnaThemeData.brightness] , the property takes precedence over
72
- /// [MediaQueryData.platformBrightness] for descendant Arna widgets.
73
- /// * [brightnessOf] , which throws if no valid [ArnaTheme] or
74
- /// [MediaQuery] exists, instead of returning null.
70
+ /// * [ArnaThemeData.brightness] , the property takes precedence over [MediaQueryData.platformBrightness] for
71
+ /// descendant Arna widgets.
72
+ /// * [brightnessOf] , which throws if no valid [ArnaTheme] or [MediaQuery] exists, instead of returning null.
75
73
static Brightness ? maybeBrightnessOf (BuildContext context) {
76
74
final _InheritedArnaTheme ? inheritedTheme = context.dependOnInheritedWidgetOfExactType <_InheritedArnaTheme >();
77
75
return inheritedTheme? .theme.data.brightness ?? MediaQuery .maybeOf (context)? .platformBrightness;
@@ -89,8 +87,9 @@ class ArnaTheme extends StatelessWidget {
89
87
}
90
88
}
91
89
92
- /// _InheritedArnaTheme which extends InheritedWidget
90
+ /// _InheritedArnaTheme which extends InheritedWidget.
93
91
class _InheritedArnaTheme extends InheritedWidget {
92
+ /// Creates a InheritedArnaTheme.
94
93
const _InheritedArnaTheme ({
95
94
required this .theme,
96
95
required super .child,
0 commit comments