Pravatar.uniqueId constructor

Pravatar.uniqueId(
  1. String uniqueId, {
  2. BoxFit fit = BoxFit.cover,
  3. Alignment alignment = Alignment.center,
})

Display the placholder avatar associated to the given uniqueId.

The avatar is guaranteed to be always the same as soon as the provided uniqueId is the same.

Implementation

Pravatar.uniqueId(
  String uniqueId, {
  this.fit = BoxFit.cover,
  this.alignment = Alignment.center,
})  :
      // ignore: prefer_initializing_formals
      uniqueId = uniqueId,
      imageId = null,
      super(
        key: Key(uniqueId),
      );