AuthIcon constructor Null safety

AuthIcon(
  1. {Key? key,
  2. String? iconPath,
  3. String? iconUrl,
  4. Color? color,
  5. double? iconSize = 40}
)

Implementation

AuthIcon({
  super.key,
  this.iconPath,
  this.iconUrl,
  this.color,
  this.iconSize = 40,
})  : assert(
        iconPath != null && iconPath.isNotBlank ||
            iconUrl != null && iconUrl.isNotBlank,
        'Must provide an icon source, which must be not blank',
      ),
      assert(
        iconPath == null || iconUrl == null,
        'Cannot accept two icon sources.',
      );