diff --git a/lib/models/documents/nodes/leaf.dart b/lib/models/documents/nodes/leaf.dart index f92ede16..aefb574d 100644 --- a/lib/models/documents/nodes/leaf.dart +++ b/lib/models/documents/nodes/leaf.dart @@ -30,7 +30,8 @@ abstract class Leaf extends Node { @override void applyStyle(Style value) { - assert(value != null && (value.isInline || value.isIgnored || value.isEmpty), + assert( + value != null && (value.isInline || value.isIgnored || value.isEmpty), 'Unable to apply Style to leaf: $value'); super.applyStyle(value); } @@ -203,5 +204,4 @@ class Embed extends Leaf { Node newInstance() { throw UnimplementedError(); } - } diff --git a/lib/widgets/cursor.dart b/lib/widgets/cursor.dart index 5d7ad3c1..bf19ca8b 100644 --- a/lib/widgets/cursor.dart +++ b/lib/widgets/cursor.dart @@ -70,8 +70,7 @@ class CursorCont extends ChangeNotifier { @required ValueNotifier show, @required CursorStyle style, @required TickerProvider tickerProvider, - }) - : assert(show != null), + }) : assert(show != null), assert(style != null), assert(tickerProvider != null), show = show ?? ValueNotifier(false), diff --git a/lib/widgets/default_styles.dart b/lib/widgets/default_styles.dart index 5dda4f1e..153ec5c7 100644 --- a/lib/widgets/default_styles.dart +++ b/lib/widgets/default_styles.dart @@ -161,7 +161,8 @@ class DefaultStyles { borderRadius: BorderRadius.circular(2), )), DefaultTextBlockStyle(baseStyle, baseSpacing, Tuple2(0.0, 6.0), null), - DefaultTextBlockStyle(baseStyle, Tuple2(0.0, 0.0), Tuple2(0.0, 0.0), null)); + DefaultTextBlockStyle( + baseStyle, Tuple2(0.0, 0.0), Tuple2(0.0, 0.0), null)); } DefaultStyles merge(DefaultStyles other) { diff --git a/lib/widgets/image.dart b/lib/widgets/image.dart index f308a420..2a6785f0 100644 --- a/lib/widgets/image.dart +++ b/lib/widgets/image.dart @@ -28,4 +28,4 @@ class ImageTapWrapper extends StatelessWidget { ), ); } -} \ No newline at end of file +}