dco_decode_ldd_display_info method
Implementation
@protected
LddDisplayInfo dco_decode_ldd_display_info(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 10)
throw Exception('unexpected arr length: expect 10 but see ${arr.length}');
return LddDisplayInfo(
name: dco_decode_String(arr[0]),
id: dco_decode_u_32(arr[1]),
x: dco_decode_i_32(arr[2]),
y: dco_decode_i_32(arr[3]),
width: dco_decode_u_32(arr[4]),
height: dco_decode_u_32(arr[5]),
rotation: dco_decode_f_32(arr[6]),
scaleFactor: dco_decode_f_32(arr[7]),
frequency: dco_decode_f_32(arr[8]),
isPrimary: dco_decode_bool(arr[9]),
);
}