Suppose situation is the following:
dynamic? _rsomeFunc() {
final smth = someGetFunction(); //may return null
return smth != null ? someObject.fromJson(jsonDecode(smth)) : null;
}
is it possible to write it via => in single line function? cause this approach is seems to be not perfect one. I tried it via ?? but it didn't help. Any suggestion?