class _ShowformState extends State<Showform> {
List data;
var duplicateItems = List<String>.from(data); //<---- The instance member 'data' can't be accessed in
//an initializer.
var items = List<String>();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 0.0,
title:
Text('Maintenance Information', style: TextStyle(fontSize: 20)),
),
I would like to convert List< dynamic> to List< string> but I can't access data.