lint: code lint

This commit is contained in:
Kuloud
2024-08-26 00:00:23 +08:00
parent 8c59ec203a
commit 43ecfb8ca1
10 changed files with 39 additions and 31 deletions

View File

@ -1,14 +1,14 @@
import 'package:flutter/material.dart';
typedef void OnChanged(bool value);
typedef OnChanged = void Function(bool value);
class AMapSwitchButton extends StatefulWidget {
const AMapSwitchButton({
Key? key,
super.key,
this.label,
this.onSwitchChanged,
this.defaultValue = true,
}) : super(key: key);
});
final Text? label;
final Function? onSwitchChanged;