AuthIcon constructor

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

Implementation

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