<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christian Findlay</title>
    <description>The latest articles on DEV Community by Christian Findlay (@cfdevelop).</description>
    <link>https://dev.to/cfdevelop</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F935428%2F765aa836-e6aa-46b4-8ca7-c2c17e1fc974.jpeg</url>
      <title>DEV Community: Christian Findlay</title>
      <link>https://dev.to/cfdevelop</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cfdevelop"/>
    <language>en</language>
    <item>
      <title>Flutter: How To Mock Functions For Testing</title>
      <dc:creator>Christian Findlay</dc:creator>
      <pubDate>Sat, 19 Nov 2022 07:37:57 +0000</pubDate>
      <link>https://dev.to/cfdevelop/flutter-how-to-mock-functions-for-testing-2fpj</link>
      <guid>https://dev.to/cfdevelop/flutter-how-to-mock-functions-for-testing-2fpj</guid>
      <description>&lt;p&gt;This article explains how to mock top-level functions in Dart for Flutter widget tests. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.christianfindlay.com/blog/flutter-mock-functions-for-testing"&gt;https://www.christianfindlay.com/blog/flutter-mock-functions-for-testing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Functions don't have to be second-class citizens in Dart, and you don't have to make a new class every time you want to mock a dependency. Pass your functions into your widgets with dependency injection and replace them with substitutes for testing. &lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>mocking</category>
      <category>functions</category>
    </item>
    <item>
      <title>Flutter Dependency Injection: ioc_container V1</title>
      <dc:creator>Christian Findlay</dc:creator>
      <pubDate>Wed, 26 Oct 2022 07:54:57 +0000</pubDate>
      <link>https://dev.to/cfdevelop/flutter-dependency-injection-ioccontainer-v1-4j6p</link>
      <guid>https://dev.to/cfdevelop/flutter-dependency-injection-ioccontainer-v1-4j6p</guid>
      <description>&lt;p&gt;Dart doesn't really have library specifically for dependency injection. There are libraries that you can use as a service locator but they have global declarations&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pub.dev/packages/ioc_container"&gt;ioc_container&lt;/a&gt; is full fledged, fast and simple library for dependency injection. Check out the benchmarks to compare the performance with other libraries. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://link.medium.com/EHKzqaV1qub"&gt;https://link.medium.com/EHKzqaV1qub&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Dart Immutable Collections</title>
      <dc:creator>Christian Findlay</dc:creator>
      <pubDate>Sun, 02 Oct 2022 06:58:22 +0000</pubDate>
      <link>https://dev.to/cfdevelop/dart-immutable-collections-4k2h</link>
      <guid>https://dev.to/cfdevelop/dart-immutable-collections-4k2h</guid>
      <description>&lt;p&gt;&lt;a href="https://link.medium.com/dhazVqi8Mtb"&gt;Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Immutability is an important Dart concept. The immutable annotation marks a class as being immutable, but if the class has mutable properties, it is not really immutable. This is true in the case of collections. This article discusses why and how to use immutable collections on your Dart classes. &lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>immutability</category>
    </item>
  </channel>
</rss>
