DeviceApplication constructor

DeviceApplication({
  1. required String appName,
  2. EntryWidgetBuilder? appEntry,
  3. void onTap()?,
  4. TextStyle? appNameStyle,
  5. String? iconImage,
  6. Widget? iconImageWidget,
  7. bool isBigWidget = false,
})

Implementation

DeviceApplication({
  required this.appName,
  this.appEntry,
  this.onTap,
  this.appNameStyle,
  this.iconImage,
  this.iconImageWidget,
  this.isBigWidget = false,
})  :

      ///   "iconImage and iconImageWidget can't be use at the same time" ,  "appEntry and onTap can't be null at the same time", "appName, iconImage and iconImageWidget can't be null at the same time"

      assert(
          (iconImage != null && iconImageWidget == null) ||
              (iconImage == null && iconImageWidget != null),
          "iconImage and iconImageWidget can't be use at the same time"),
      assert(
          (appEntry != null && onTap == null) ||
              (appEntry == null && onTap != null),
          "appEntry and onTap can't be null at the same time");