call method

T call(
  1. List<Shadow> shadows
)

Creates an Attribute instance from a list of BoxShadow objects.

This method maps each BoxShadow object to a ShadowDto object and passes the resulting list to the builder function to create the Attribute instance.

Implementation

T call(List<Shadow> shadows) {
  return builder(shadows.map((e) => e.toDto()).toList());
}