GSForm.multiSection constructor

GSForm.multiSection(
  1. BuildContext context,
  2. {Key? key,
  3. GSFormStyle? style,
  4. required List<GSSection> sections}
)

Implementation

GSForm.multiSection(BuildContext context, {Key? key, this.style, required this.sections}) : super(key: key) {
  style ??= GSFormUtils.checkIfDarkModeEnabled(context)
      ? style ?? GSFormStyle.multiSectionFormDefaultDarkStyle
      : GSFormStyle.multiSectionFormDefaultStyle;
  for (var element in sections) {
    element.style = style;
  }
}