mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
Add assertion to avoid null
This commit is contained in:
parent
770ed710d7
commit
538220f7bc
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class SideMenuItem extends StatelessWidget {
|
||||||
this.imagePath,
|
this.imagePath,
|
||||||
this.icon,
|
this.icon,
|
||||||
this.isSelected = false,
|
this.isSelected = false,
|
||||||
}) : super(key: key);
|
}) : assert((icon != null && imagePath == null) || (icon == null && imagePath != null));
|
||||||
|
|
||||||
final void Function() onTap;
|
final void Function() onTap;
|
||||||
final String? imagePath;
|
final String? imagePath;
|
||||||
|
|
Loading…
Reference in a new issue