SfAvatar constructor

SfAvatar(
  1. {Key key,
  2. @required SfUser user,
  3. double width = 45,
  4. double height = 45,
  5. VoidCallback onTap,
  6. BorderRadiusGeometry borderRadius,
  7. ImageProvider<Object> defaultImage,
  8. BoxFit fit = BoxFit.cover,
  9. Widget builder(
    1. BuildContext context,
    2. SfAvatar avatar,
    3. ImageProvider<Object> image
    )}
)

Implementation

SfAvatar({
  Key key,
  @required this.user,
  this.width = 45,
  this.height = 45,
  this.onTap,
  this.borderRadius,
  this.defaultImage,
  this.fit = BoxFit.cover,
  this.builder
}) : super(key:key);