call method
Creates an Attribute instance from an elevation value.
Retrieves the corresponding list of BoxShadow objects from the kElevationToShadow map, maps each BoxShadow to a BoxShadowDto, and passes the resulting list to the builder function to create the Attribute instance.
Throws an AssertionError if the provided value is not a valid elevation value.
Implementation
T call(int value) {
assert(kElevationToShadow.containsKey(value), 'Invalid elevation value');
final boxShadows = kElevationToShadow[value]!.map((e) => e.toDto());
return builder(boxShadows.toList());
}