SeniorProfilePicture constructor

const SeniorProfilePicture({
  1. Key? key,
  2. required String name,
  3. ImageProvider<Object>? imageProvider,
  4. bool isLoading = false,
  5. required double radius,
  6. SeniorProfilePictureStyle? style,
})

Creates a profile picture component.

Displays the user's profile picture or initials. There is a loading state that can be set by parameter isLoading. The radius and name parameters are required.

Implementation

const SeniorProfilePicture({
  Key? key,
  required this.name,
  this.imageProvider,
  this.isLoading = false,
  required this.radius,
  this.style,
}) : super(key: key);