Question: Below is a snippet of my code:

```
class _MyHomePageState extends State<MyHomePage> {
  Widget buildButton(String buttonText) {
    return Expanded(
      child: new OutlineButton(
        padding: EdgeInsets.all(24.0),
        child: new Text(buttonText),
        style: TextStyle(fontWeight: FontWeight.bold),
        onPressed: () => {},
      ),
    );
  }

```

I am getting the following error:

```
lib/main.dart:30:7: Error: No named parameter with the name 'style'.
      style: TextStyle(fontWeight: FontWeight.bold),
      ^^^^^

Context: Found this candidate, but the arguments don't match.
  const OutlineButton({
        ^^^^^^^^^^^^^

```

I am new to flutter and don't know what is wrong with my style statement.

Answer: 
try this,

```
def remove(key, value):
    filter_ = []
    for v in value:
        if key == v and key in filter_:
            continue

        filter_.append(v)
    return filter_

my_list = ["sam","sam", "is", "a", "is", "sam" , "good", "person", "person"]

my_list = remove("sam", my_list)
print(my_list)

my_list = remove("person", my_list)
print(my_list)

```

---

```
['sam', 'is', 'a', 'is', 'good', 'person', 'person']

['sam', 'is', 'a', 'is', 'good', 'person']

```
For selective thing you need to iterate over the list:

```
def remove_duplicate_selection(my_list, item):
    flag = False
    length = len(my_list)
    for i in range(length):
        if length == i:
            break
        if my_list[i] == item:
            if flag:
                del my_list[i]
                length -= 1
            else:
                flag = True
    return my_list

def main():
    my_list = ["sam", "sam", "is", "a", "is", "sam", "good", "person", "person"]
    remove_duplicate_selection(my_list, "sam")
    print(my_list)
    remove_duplicate_selection(my_list, "person")
    print(my_list)

if __name__ == '__main__':
    main()

```

output should be:

```
['sam', 'is', 'a', 'is', 'good', 'person', 'person']
['sam', 'is', 'a', 'is', 'good', 'person']

```