TextStyle is not an enum (fixes crash with InputDecorator.toString) (#12835)

diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart
index e4185c1..c6f1614 100644
--- a/packages/flutter/lib/src/material/input_decorator.dart
+++ b/packages/flutter/lib/src/material/input_decorator.dart
@@ -408,7 +408,7 @@
   void debugFillProperties(DiagnosticPropertiesBuilder description) {
     super.debugFillProperties(description);
     description.add(new DiagnosticsProperty<InputDecoration>('decoration', decoration));
-    description.add(new EnumProperty<TextStyle>('baseStyle', baseStyle));
+    description.add(new DiagnosticsProperty<TextStyle>('baseStyle', baseStyle, defaultValue: null));
     description.add(new DiagnosticsProperty<bool>('isFocused', isFocused));
     description.add(new DiagnosticsProperty<bool>('isEmpty', isEmpty));
   }
diff --git a/packages/flutter/test/material/input_decorator_test.dart b/packages/flutter/test/material/input_decorator_test.dart
index 6f873ef..c9c05fd 100644
--- a/packages/flutter/test/material/input_decorator_test.dart
+++ b/packages/flutter/test/material/input_decorator_test.dart
@@ -420,4 +420,20 @@
     expect(tester.getRect(find.text('S')).left, anyOf(783.0, 784.0));
     expect(tester.getRect(find.text('S')).top, equals(295.5));
   });
+
+  testWidgets('InputDecorator animates properly', (WidgetTester tester) async {
+    final Widget child = const InputDecorator(
+      key: const Key('key'),
+      decoration: const InputDecoration(),
+      baseStyle: const TextStyle(),
+      textAlign: TextAlign.center,
+      isFocused: false,
+      isEmpty: false,
+      child: const Placeholder(),
+    );
+    expect(
+      child.toString(),
+      'InputDecorator-[<\'key\'>](decoration: InputDecoration(), baseStyle: TextStyle(<all styles inherited>), isFocused: false, isEmpty: false)',
+    );
+  });
 }