Skip to content

Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't. in final parsed = css.parse(text); #101

@zhangjingfang7

Description

@zhangjingfang7

at class universal_html-2.2.4/lib/src/html/dom/element_subclasses.dart in 2757 rows exist problem:
final text = this.text;
final parsed = css.parse(text as String);

Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is
nullable and 'Object' isn't.

  • 'Object' is from 'dart:core'.
    final parsed = css.parse(text);
    ^
    Target kernel_snapshot failed: Exception

need to cover

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions