GSForm.multiSection constructor
GSForm.multiSection(
- BuildContext context, {
- Key? key,
- GSFormStyle? style,
- 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;
}
}