fromEntity static method
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,
);
}