---
title: "Discussion on \"Widget testing passed in function\" | Hashnode"
description: "Discussion on \"Widget testing passed in function\". In this post, we going to go through how, at least in my opinion, one would go about testing that a function is called within a widget when that function is one of the Widgets arguments.\nTake the following overly simplified example…\nclass SampleWidge..."
url: "https://hashnode.com/posts/widget-testing-passed-in-function-169c2633180b/60dd38b595305075b9338a1f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Widget testing passed in function](https://remelehane.dev/widget-testing-passed-in-function-169c2633180b?utm_source=hashnode&utm_medium=feed)

In this post, we going to go through how, at least in my opinion, one would go about testing that a function is called within a widget when that function is one of the Widgets arguments. Take the following overly simplified example… class SampleWidge...

Jul 10, 2020 · 2 min read · remelehane.dev  
Updated Jul 12, 2021  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#testing](https://hashnode.com/tag/testing)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#tdd](https://hashnode.com/tag/tdd)

## Written by

[Reme Le Hane](https://hashnode.com/@remelehane)

@remelehane · South Africa

  
[View profile](https://hashnode.com/@remelehane)

Flutter Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
