Avatar constructor

Avatar({
  1. Key? key,
  2. String type = 'normal',
  3. double? size,
  4. String shape = 'round',
  5. Color? color,
  6. Color? iconColor,
  7. Widget? custom,
  8. ImageProvider<Object>? image,
  9. dynamic onClick()?,
})

Implementation

Avatar(
    {Key? key,
    this.type: 'normal',
    this.size,
    this.shape: 'round',
    this.color,
    this.iconColor,
    this.custom,
    this.image,
    this.onClick})
    : assert(["small", "normal", "large"].indexOf(type) > -1,
          "type must be small, normal, or large"),
      assert(["round", "square"].indexOf(shape) > -1,
          "shape must be round, or square"),
      super(key: key);