mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +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.icon,
|
||||
this.isSelected = false,
|
||||
}) : super(key: key);
|
||||
}) : assert((icon != null && imagePath == null) || (icon == null && imagePath != null));
|
||||
|
||||
final void Function() onTap;
|
||||
final String? imagePath;
|
||||
|
|
Loading…
Reference in a new issue