hasSource property Null safety

bool hasSource

Implementation

bool get hasSource =>
    file != null || (url != null && url != '') || fileBytes != null;