Fakultas Ilmu Komputer UI

Commit 66def408 authored by Adzkia Aisyah Afrah Hardian's avatar Adzkia Aisyah Afrah Hardian
Browse files

[REFACTOR] add document to public members

parent 551a7e99
Pipeline #36783 passed with stages
in 4 minutes and 28 seconds
......@@ -4,7 +4,7 @@ import 'package:ppl_disabilitas/config/styles.dart';
import 'package:ppl_disabilitas/network/data/network_model.dart';
import 'package:ppl_disabilitas/network/network_interface.dart';
// Create Pencarian page widget with a state
/// Create Pencarian page widget with a state
class Pencarian extends StatefulWidget {
@override
PencarianState createState() => PencarianState();
......@@ -12,20 +12,33 @@ class Pencarian extends StatefulWidget {
/// State of Pencacrian page
class PencarianState extends State<Pencarian> {
final myController = TextEditingController();
/// Controller for textFormField
TextEditingController myController = TextEditingController();
/// Search Icon for textFormField
Icon searchIcon = Icon(Icons.search);
/// Text for appbar
Widget appBarText = Text('Pencarian Lokasi');
/// To get API of places
NetworkInterface networkInterface = NetworkInterface();
/// List for places from API
List places = [];
/// List of places currently searched on the textFormField
List currentSearch = [];
/// Data from API
Future<NetworkModel> data;
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty<List>('places', places));
properties.add(DiagnosticsProperty<List>('currentSearch', currentSearch));
properties.add(DiagnosticsProperty<NetworkInterface>('networkInterface', networkInterface));
properties..add(DiagnosticsProperty<List>('places', places))
..add(DiagnosticsProperty<List>('currentSearch', currentSearch))
..add(DiagnosticsProperty<NetworkInterface>('networkInterface', networkInterface));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment