AvoidToggleSheetDelegateInBuild constructor

const AvoidToggleSheetDelegateInBuild()

Implementation

const AvoidToggleSheetDelegateInBuild()
    : super(
        code: const LintCode(
          name: 'avoid_delegate_in_build',
          problemMessage: 'Avoid creating ToggleSheetDelegate inside a build() method.',
          correctionMessage: 'Move the delegate to a final field or outside build().',
        ),
      );