DividerThemeData.standard constructor

DividerThemeData.standard(
  1. ThemeData style
)

Implementation

factory DividerThemeData.standard(ThemeData style) {
  return DividerThemeData(
    thickness: 1,
    horizontalMargin: const EdgeInsets.symmetric(horizontal: 10),
    verticalMargin: const EdgeInsets.symmetric(vertical: 10),
    decoration: () {
      if (style.brightness == Brightness.light) {
        return BoxDecoration(color: Color(0xFFB7B7B7));
      } else {
        return BoxDecoration(color: Color(0xFF484848));
      }
    }(),
  );
}