build method

  1. @override
Widget build(
  1. BuildContext context,
  2. Divider content
)
override

Builds the layout for the content item. This transforms the content into a Flutter Widget.

Implementation

@override
Widget build(BuildContext context, Divider content) {
  final child = f.Divider(
    thickness: content.thickness,
  );

  return content.indent != null && content.indent! > 0
      ? Padding(
          padding: EdgeInsets.all(content.indent!),
          child: child,
        )
      : child;
}