I am new on Flutter and i got this error.

`type 'text' is not a subtype of type 'string'`

I have a class

```
class _Message {
  int whom;
  String text;

  _Message(this.whom, this.text);
}

```

and I want to convert the `text` to a list using this

```
  @override
  Widget build(BuildContext context) {
    final List<String> led = messages.map((_message) => Text('${_message.text}')).cast<String> 
    ().toList();
  }

```

How should i solve this?