File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/src/core/implementation Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ class InteractionOutput implements scripting_api.InteractionOutput {
3434
3535 bool _dataUsed = false ;
3636
37- ({bool read, Object ? internalValue}) _value =
38- (read: false , internalValue: null );
37+ scripting_api.DataSchemaValue ? _value;
3938
4039 @override
4140 Future <ByteBuffer > arrayBuffer () async {
@@ -48,8 +47,9 @@ class InteractionOutput implements scripting_api.InteractionOutput {
4847
4948 @override
5049 Future <Object ?> value () async {
51- if (_value.read) {
52- return _value.internalValue;
50+ final existingValue = _value;
51+ if (existingValue != null ) {
52+ return existingValue.value;
5353 }
5454
5555 // TODO(JKRhb): Should a NotReadableError be thrown if schema is null?
@@ -61,7 +61,7 @@ class InteractionOutput implements scripting_api.InteractionOutput {
6161 );
6262 _dataUsed = true ;
6363
64- _value = (read : true , internalValue : value? .value) ;
64+ _value = value;
6565 return value? .value;
6666 }
6767
You can’t perform that action at this time.
0 commit comments