DividerThemeData.standard constructor

DividerThemeData.standard(
  1. ThemeData style
)

Implementation

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