<?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: S-Shanmathi</title>
    <description>The latest articles on DEV Community by S-Shanmathi (@shanmathi).</description>
    <link>https://dev.to/shanmathi</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%2F806552%2F66f45213-4093-4880-9bb6-a24281d0c2e6.png</url>
      <title>DEV Community: S-Shanmathi</title>
      <link>https://dev.to/shanmathi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shanmathi"/>
    <language>en</language>
    <item>
      <title>How can I save the time , when the browser closed by the user in mvc identity</title>
      <dc:creator>S-Shanmathi</dc:creator>
      <pubDate>Mon, 31 Oct 2022 16:39:07 +0000</pubDate>
      <link>https://dev.to/shanmathi/how-can-i-save-the-time-when-the-browser-closed-by-the-user-in-mvc-identity-4aim</link>
      <guid>https://dev.to/shanmathi/how-can-i-save-the-time-when-the-browser-closed-by-the-user-in-mvc-identity-4aim</guid>
      <description>&lt;p&gt;ASP.NET MVC IDENTITY:&lt;/p&gt;

&lt;p&gt;I have tried to unload the event on the Layout page but it is not triggered, Alternatively, I have also used session time out in 'inproc', to save the logout time WHEN THE USER DOESN'T LOGOFF AND CLOSES THE BROWSER/TAB.&lt;/p&gt;

&lt;p&gt;In Global.asax I have used session_end() event to end the session in one minute and logoff automatically after 1 minute in my MVC IDENTITY.&lt;/p&gt;

&lt;p&gt;The requirement is that I need to store the time of browser/tab close by the user as LogOFF time in the database.&lt;/p&gt;

&lt;p&gt;Is there any event to do the same?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How can I downgrade Flutter version 2.8.1 to 1.22.6? Is it possible?</title>
      <dc:creator>S-Shanmathi</dc:creator>
      <pubDate>Wed, 23 Feb 2022 05:57:04 +0000</pubDate>
      <link>https://dev.to/shanmathi/how-can-i-downgrade-flutter-version-281-to-1226-is-it-possible-3541</link>
      <guid>https://dev.to/shanmathi/how-can-i-downgrade-flutter-version-281-to-1226-is-it-possible-3541</guid>
      <description>&lt;p&gt;I'm currently working with the flutter updated version (2.8.1), but I need to downgrade to a lower version. When I tried, it showed a stable version not available. Could anyone suggest me any ideas?&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>help</category>
      <category>beginners</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Flutter: Providing non-objects.</title>
      <dc:creator>S-Shanmathi</dc:creator>
      <pubDate>Sat, 19 Feb 2022 07:59:30 +0000</pubDate>
      <link>https://dev.to/shanmathi/providing-non-objects-33j0</link>
      <guid>https://dev.to/shanmathi/providing-non-objects-33j0</guid>
      <description>&lt;p&gt;**&amp;gt; Providing non-Objects&lt;br&gt;
Typically, when working with the Provider package, you provide objects based on your custom classes.&lt;/p&gt;

&lt;p&gt;This makes sense because you can implement the &lt;strong&gt;ChangeNotifier&lt;/strong&gt; mixin in your classes to then trigger *&lt;em&gt;notifyListeners() *&lt;/em&gt; whenever you want to update all places in your app that listen to your data.&lt;/p&gt;

&lt;p&gt;But you're not limited to providing objects - you can provide ANY kind of value (lists, numbers, strings, objects without *&lt;em&gt;ChangeNotifier *&lt;/em&gt; mixing, ...).&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Provider(builder: (ctx) =&amp;gt; 'Hi, I am a text!', child: ...);&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Of course, if you're using Provider Package v4 or greater, it would be &lt;strong&gt;create: ...&lt;/strong&gt; instead of &lt;strong&gt;builder: ...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You might wonder, how this text can change though - it's a constant text after all. It certainly doesn't implement the &lt;strong&gt;ChangeNotifier **mixin (the **String&lt;/strong&gt; class, which is built into Dart, indeed doesn't - just like numbers, booleans, etc.).&lt;/p&gt;

&lt;p&gt;It's important to note, that the above snippet uses Provider, NOT &lt;strong&gt;ChangeNotifierProvider&lt;/strong&gt;. The latter indeed only works with objects based on classes that use the &lt;strong&gt;ChangeNotifier&lt;/strong&gt; mixin. And this is the most common use case because you typically want to be your global data changeable (and have the app UI react to that).&lt;/p&gt;

&lt;p&gt;But in case you just want to provide some global (constant) value which you can then conveniently use like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;print(Provider.of(context)); // prints 'Hi, I am a text!'; does never update!&lt;/strong&gt;&lt;br&gt;
you can do that.&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
