Code structure
This commit is contained in:
14
lib/entity_class/select_entity.class.dart
Normal file
14
lib/entity_class/select_entity.class.dart
Normal file
@ -0,0 +1,14 @@
|
||||
part of '../main.dart';
|
||||
|
||||
class SelectEntity extends Entity {
|
||||
List<String> get listOptions => attributes["options"] != null
|
||||
? (attributes["options"] as List).cast<String>()
|
||||
: [];
|
||||
|
||||
SelectEntity(Map rawData) : super(rawData);
|
||||
|
||||
@override
|
||||
Widget _buildStatePart(BuildContext context) {
|
||||
return SelectStateWidget();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user