How to initialize default value for Generic type variable? class RangeValuePair<T>
{
T _value ;
RangeValuePair(int start)
{
this._value = ?(how to define) ;
}
}--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/e1d8f7d0-8143-44b6-855d-995bdecea5d9%40googlegroups.com.
Here you are: https://stackoverflow.com/questions/42864913/how-do-i-initialize-a-final-class-property-in-a-constructorRangeValuePair(int start): _value = dosomething;
On Wed, Mar 18, 2020 at 8:59 AM Ashok Kuvaraja <kuvara...@gmail.com> wrote:
--How to initialize default value for Generic type variable?class RangeValuePair<T> { T _value ; RangeValuePair(int start) { this._value = ?(how to define) ; } }
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
On Mar 19, 2020, at 1:40 AM, Ashok Kuvaraja <kuvara...@gmail.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/20ba30c3-f746-419b-9f3e-61db1ecb94dc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/5EC22C4C-90EA-4C21-BE99-84BAFFC828C4%40gmail.com.