GoogleUserCircleAvatar constructor

const GoogleUserCircleAvatar({
  1. Key? key,
  2. required GoogleIdentity identity,
  3. String? placeholderPhotoUrl,
  4. Color? foregroundColor,
  5. Color? backgroundColor,
})

Creates a new widget based on the specified identity.

If identity does not contain a photoUrl and placeholderPhotoUrl is specified, then the given URL will be used as the user's photo URL. The URL must be able to handle a sizeDirective path segment.

If identity does not contain a photoUrl and placeholderPhotoUrl is not specified, then the widget will render the user's first initial in place of a profile photo, or a default profile photo if the user's identity does not specify a displayName.

Implementation

const GoogleUserCircleAvatar({
  Key? key,
  required this.identity,
  this.placeholderPhotoUrl,
  this.foregroundColor,
  this.backgroundColor,
})  : assert(identity != null),
      super(key: key);