lint: code lint
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user