Unverified Commit 501a23ab authored by ahyangnb's avatar ahyangnb Committed by GitHub

Unprefixes the class with the "new" keyword (#72772)

parent 6ad6c0f4
...@@ -527,7 +527,7 @@ class ThemeData with Diagnosticable { ...@@ -527,7 +527,7 @@ class ThemeData with Diagnosticable {
/// ///
/// This will rarely be used directly. It is used by [lerp] to /// This will rarely be used directly. It is used by [lerp] to
/// create intermediate themes based on two themes created with the /// create intermediate themes based on two themes created with the
/// [new ThemeData] constructor. /// [ThemeData] constructor.
const ThemeData.raw({ const ThemeData.raw({
// Warning: make sure these properties are in the exact same order as in // Warning: make sure these properties are in the exact same order as in
// operator == and in the hashValues method and in the order of fields // operator == and in the hashValues method and in the order of fields
...@@ -755,7 +755,7 @@ class ThemeData with Diagnosticable { ...@@ -755,7 +755,7 @@ class ThemeData with Diagnosticable {
/// this theme is localized using text geometry using [ThemeData.localize]. /// this theme is localized using text geometry using [ThemeData.localize].
factory ThemeData.dark() => ThemeData(brightness: Brightness.dark); factory ThemeData.dark() => ThemeData(brightness: Brightness.dark);
/// The default color theme. Same as [new ThemeData.light]. /// The default color theme. Same as [ThemeData.light].
/// ///
/// This is used by [Theme.of] when no theme has been specified. /// This is used by [Theme.of] when no theme has been specified.
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment