ProfileAvatar constructor

ProfileAvatar({
  1. Key? key,
  2. String? url,
  3. String? profileName,
  4. void onClick()?,
  5. double borderWith = 5,
  6. bool isEdit = true,
  7. ImageProvider<Object>? image,
  8. bool noAction = false,
  9. ImageProvider<Object>? defaultImage,
  10. double? iconSize,
  11. double? size,
})

Implementation

ProfileAvatar(
    {Key? key,
    this.url,
    this.profileName,
    this.onClick,
    this.borderWith = 5,
    this.isEdit = true,
    this.image,
    this.noAction = false,
    this.defaultImage,
    this.iconSize,
    this.size})
    : child = profileName != null
          ? Text(
              getShortOfName(profileName),
              style: Get.find<AppFonts>().M(color: Colors.white),
            )
          : null,
      super(key: key);