Fix windows some issues
Optimize overwrite handle Optimize access control page Optimize some details
This commit is contained in:
18
lib/common/yaml.dart
Normal file
18
lib/common/yaml.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:yaml_writer/yaml_writer.dart';
|
||||
|
||||
class Yaml {
|
||||
static Yaml? _instance;
|
||||
|
||||
Yaml._internal();
|
||||
|
||||
factory Yaml() {
|
||||
_instance ??= Yaml._internal();
|
||||
return _instance!;
|
||||
}
|
||||
|
||||
String encode(Object? value) {
|
||||
return YamlWriter().convert(value);
|
||||
}
|
||||
}
|
||||
|
||||
final yaml = Yaml();
|
||||
Reference in New Issue
Block a user