flutter-freezed Questions
2
Solved
Feature for deserializing Generic Classes was introduced to freeze a few months back.
I am trying to follow the documentation, but I am facing a compile time error:
The argument type 'NameOfClass F...
Obsequies asked 30/9, 2022 at 6:56
4
I have a freezed class that takes an enum in its constructor, but when trying to perform the jsonEncode method on this class, it fails with the following error:
The following JsonUnsupportedObjectE...
Bane asked 4/10, 2021 at 16:30
4
Solved
Type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast error
In my sample project I implemented project with riverpod package and freezed. In the code below, I can get data from the server successfully, but when I try to use model.fromJson I get this error:
...
Shiri asked 15/7, 2021 at 6:9
2
I am trying to use freezed on my application, So I added
environment:
sdk: ">=2.7.0<3.0.0"
freezed: ^0.14.0
freezed_annotation: ^0.14.0
to my dependencies.
dev_dependencies:
f...
Stylograph asked 7/9, 2021 at 13:47
1
Solved
I've tried to create a profile model like this; fromJson looks good, but I have a problem with toJson:
@Freezed(
fromJson: true,
toJson: true,
map: FreezedMapOptions.none,
when: FreezedWhenOpti...
Thurmond asked 12/11, 2022 at 14:15
0
I'm trying to modify item value in list, which always results Can't modify list because of Unsupported operation: Cannot modify an unmodifiable list
I'm using bloc state-management and freezes as c...
Requiem asked 23/6, 2022 at 12:59
2
Solved
How do I make a Freezed object take a generic type? I want to do this:
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:vepo/src/entity_types/option_entity.dart';
part ...
Retinue asked 6/6, 2021 at 6:59
1
© 2022 - 2024 — McMap. All rights reserved.