mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-28 16:58:41 +01:00
23 lines
470 B
Dart
23 lines
470 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
abstract class PlatformRequirement {
|
|
String name;
|
|
String? description;
|
|
final IconData icon;
|
|
late bool status;
|
|
|
|
PlatformRequirement(this.name, {this.description, required this.icon});
|
|
|
|
Future<bool> getStatus();
|
|
|
|
Future<void> call(BuildContext context, VoidCallback onUpdate);
|
|
|
|
Widget? build(BuildContext context, VoidCallback onUpdate) {
|
|
return null;
|
|
}
|
|
|
|
Widget? buildDescription() {
|
|
return null;
|
|
}
|
|
}
|