shadowFloatingFor static method

List<BoxShadow> shadowFloatingFor(
  1. Brightness b
)

The floating-element shadow appropriate for b: shadowFloatingDark on dark surfaces, shadowFloating on light ones.

Implementation

static List<BoxShadow> shadowFloatingFor(Brightness b) =>
    b == Brightness.dark ? shadowFloatingDark : shadowFloating;