UserAvatar constructor

const UserAvatar({
  1. Key? key,
  2. String? url,
  3. double? width,
  4. double? height,
  5. Widget? child,
  6. Color? backgroundColor,
})

Implementation

const UserAvatar(
    {Key? key,
    String? url,
    double? width,
    double? height,
    this.child,
    this.backgroundColor})
    : faceUrl = url ?? "",
      width = width ?? 32.0,
      height = height ?? 32.0,
      super(key: key);