padding property

EdgeInsetsGeometry? padding
final

The amount of space to surround the child inside the bounds of the Switch.

Defaults to horizontal padding of 4 pixels. If ThemeData.useMaterial3 is false, then there is no padding by default.

Implementation

final EdgeInsetsGeometry? padding;