boxShadow method

List<BoxShadow> boxShadow(
  1. BuildContext context
)

Implementation

List<BoxShadow> boxShadow(BuildContext context) {
  switch (this) {
    case OneButtonDestructiveHierarchy.primary:
    case OneButtonDestructiveHierarchy.secondary:
      return context.shadow.get(OneShadowSize.skeumorphic);
    case OneButtonDestructiveHierarchy.tertiary:
    case OneButtonDestructiveHierarchy.link:
      return [];
  }
}