Add asserts

pull/1182/head
BambinoUA 2 years ago
parent b13833c99b
commit 1684bd2c8c
  1. 4
      lib/src/widgets/toolbar/quill_font_family_button.dart
  2. 1
      lib/src/widgets/toolbar/quill_font_size_button.dart

@ -32,7 +32,9 @@ class QuillFontFamilyButton extends StatefulWidget {
this.itemHeight,
this.itemPadding,
Key? key,
}) : super(key: key);
}) : assert(rawItemsMap.length > 0),
assert(initialValue == null || initialValue.length > 0),
super(key: key);
final double iconSize;
final Color? fillColor;

@ -32,6 +32,7 @@ class QuillFontSizeButton extends StatefulWidget {
this.itemPadding,
Key? key,
}) : assert(rawItemsMap.length > 0),
assert(initialValue == null || initialValue.length > 0),
super(key: key);
final double iconSize;

Loading…
Cancel
Save