getSection method

ProfileSection? getSection(
  1. String name
)

Get a section by name.

Implementation

ProfileSection? getSection(String name) {
  return sections.where((s) => s.name == name).firstOrNull;
}