toModel method

ChatAvatar toModel()

Constructs a new ChatAvatar from this ChatAvatarMixin.

Implementation

ChatAvatar toModel() => ChatAvatar(
  medium: medium.toModel(),
  small: small.toModel(),
  original: original.toModel(),
  full: full.toModel(),
  big: big.toModel(),
  crop: crop == null
      ? null
      : CropArea(
          topLeft: CropPoint(x: crop!.topLeft.x, y: crop!.topLeft.y),
          bottomRight: CropPoint(
            x: crop!.bottomRight.x,
            y: crop!.bottomRight.y,
          ),
        ),
);