fromEntity static method

Future<ShadowModel?> fromEntity(
  1. ShadowEntity? entity
)

Implementation

static Future<ShadowModel?> fromEntity(ShadowEntity? entity) async {
  if (entity == null) return null;
  return ShadowModel(
    color: await RgbModel.fromEntity(entity.color),
    offsetDX: entity.offsetDX,
    offsetDY: entity.offsetDY,
    spreadRadius: entity.spreadRadius,
    blurRadius: entity.blurRadius,
  );
}